![]() |
Leonetienne/Hazelnupp
Simple, easy to use, command line parameter interface
|
Specializations for integer values (uses long long int) More...
#include <IntValue.h>
Public Member Functions | |
IntValue (const long long int &value) | |
~IntValue () override | |
Value * | Deepcopy () const override |
Will return a deeopopy of this object. More... | |
std::string | GetAsOsString () const override |
Will return a string suitable for an std::ostream;. More... | |
const long long int & | GetValue () const |
Will return the raw value. More... | |
operator long long int () const | |
operator int () const | |
long long int | GetInt64 () const override |
Will return the data as a long long int. More... | |
int | GetInt32 () const override |
Will return the data as an int. More... | |
long double | GetFloat64 () const override |
Will return the data as a long double. More... | |
double | GetFloat32 () const override |
Will return the data as a double. More... | |
std::string | GetString () const override |
Will return the data as a string. More... | |
const std::vector< Value * > & | GetList () const override |
Throws HazelnuppValueNotConvertibleException. More... | |
![]() | |
virtual | ~Value () |
DATA_TYPE | GetDataType () const |
Will return the data type of this value. More... | |
Additional Inherited Members | |
![]() | |
Value (DATA_TYPE type) | |
![]() | |
DATA_TYPE | type |
Specializations for integer values (uses long long int)
Definition at line 6 of file IntValue.h.
IntValue::IntValue | ( | const long long int & | value | ) |
Definition at line 5 of file IntValue.cpp.
|
inlineoverride |
Definition at line 10 of file IntValue.h.
|
overridevirtual |
Will return a deeopopy of this object.
Implements Value.
Definition at line 13 of file IntValue.cpp.
|
overridevirtual |
Will return a string suitable for an std::ostream;.
Implements Value.
Definition at line 18 of file IntValue.cpp.
|
overridevirtual |
|
overridevirtual |
Will return the data as a long double.
Implements Value.
Definition at line 52 of file IntValue.cpp.
|
overridevirtual |
|
overridevirtual |
Will return the data as a long long int.
Implements Value.
Definition at line 42 of file IntValue.cpp.
|
overridevirtual |
Throws HazelnuppValueNotConvertibleException.
Implements Value.
Definition at line 70 of file IntValue.cpp.
|
overridevirtual |
const long long int & IntValue::GetValue | ( | ) | const |
IntValue::operator int | ( | ) | const |
Definition at line 35 of file IntValue.cpp.
IntValue::operator long long int | ( | ) | const |
Definition at line 30 of file IntValue.cpp.