![]() |
SMILE
v2.5
Schwarzschild Modelling Interactive expLoratory Environment
|
The StringVariant class is a simple string-based variant implementation that allows the user to easily convert between simple numeric/string types. More...
#include <utils.h>
Public Member Functions | |
| StringVariant (const std::string &src) | |
| template<typename ValueType > | |
| StringVariant (ValueType val) | |
| template<typename ValueType > | |
| StringVariant (ValueType val, unsigned int width) | |
| template<typename ValueType > | |
| StringVariant & | operator= (const ValueType val) |
| template<typename NumberType > | |
| NumberType | toNumber () const |
| bool | toBool () const |
| double | toDouble () const |
| float | toFloat () const |
| int | toInt () const |
| std::string | toString () const |
Private Attributes | |
| std::string | data |
The StringVariant class is a simple string-based variant implementation that allows the user to easily convert between simple numeric/string types.
1.8.8