![]() |
Leonetienne/Hazelnupp
Simple, easy to use, command line parameter interface
|
Abstract class for values. More...
#include <Value.h>
Public Member Functions | |
virtual | ~Value () |
virtual Value * | Deepcopy () const =0 |
Will return a deeopopy of this object. More... | |
virtual std::string | GetAsOsString () const =0 |
Will return a string suitable for an std::ostream. More... | |
DATA_TYPE | GetDataType () const |
Will return the data type of this value. More... | |
virtual long long int | GetInt64 () const =0 |
Will attempt to return the integer data (long long) More... | |
virtual int | GetInt32 () const =0 |
Will attempt to return the integer data (int) More... | |
virtual long double | GetFloat64 () const =0 |
Will attempt to return the floating-point data (long double) More... | |
virtual double | GetFloat32 () const =0 |
Will attempt to return the floating-point data (double) More... | |
virtual std::string | GetString () const =0 |
Will attempt to return the string-data. More... | |
virtual const std::vector< Value * > & | GetList () const =0 |
Will attempt to return the list-data. More... | |
Protected Member Functions | |
Value (DATA_TYPE type) | |
Protected Attributes | |
DATA_TYPE | type |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Value &v) |
|
protected |
|
pure virtual |
Will return a deeopopy of this object.
Implemented in FloatValue, ListValue, StringValue, IntValue, and VoidValue.
|
pure virtual |
Will return a string suitable for an std::ostream.
Implemented in FloatValue, ListValue, StringValue, IntValue, and VoidValue.
DATA_TYPE Value::GetDataType | ( | ) | const |
|
pure virtual |
Will attempt to return the floating-point data (double)
Implemented in ListValue, FloatValue, IntValue, StringValue, and VoidValue.
|
pure virtual |
Will attempt to return the floating-point data (long double)
Implemented in ListValue, FloatValue, IntValue, StringValue, and VoidValue.
|
pure virtual |
Will attempt to return the integer data (int)
Implemented in ListValue, FloatValue, IntValue, StringValue, and VoidValue.
|
pure virtual |
Will attempt to return the integer data (long long)
Implemented in ListValue, FloatValue, IntValue, StringValue, and VoidValue.
|
pure virtual |
Will attempt to return the list-data.
Implemented in ListValue, FloatValue, IntValue, StringValue, and VoidValue.
|
pure virtual |
Will attempt to return the string-data.
Implemented in ListValue, FloatValue, IntValue, StringValue, and VoidValue.
|
friend |