SMILE  v2.5
Schwarzschild Modelling Interactive expLoratory Environment
Public Member Functions | Private Attributes | List of all members
smile::StringVariant Class Reference

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 >
StringVariantoperator= (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
 

Detailed Description

The StringVariant class is a simple string-based variant implementation that allows the user to easily convert between simple numeric/string types.


The documentation for this class was generated from the following file: