![]() |
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 8 of file IntValue.h.
IntValue::IntValue | ( | const long long int & | value | ) |
Definition at line 7 of file IntValue.cpp.
|
inlineoverride |
Definition at line 12 of file IntValue.h.
|
overridevirtual |
Will return a deeopopy of this object.
Implements Hazelnp::Value.
Definition at line 15 of file IntValue.cpp.
|
overridevirtual |
Will return a string suitable for an std::ostream;.
Implements Hazelnp::Value.
Definition at line 20 of file IntValue.cpp.
|
overridevirtual |
Will return the data as a double.
Implements Hazelnp::Value.
Definition at line 59 of file IntValue.cpp.
|
overridevirtual |
Will return the data as a long double.
Implements Hazelnp::Value.
Definition at line 54 of file IntValue.cpp.
|
overridevirtual |
Will return the data as an int.
Implements Hazelnp::Value.
Definition at line 49 of file IntValue.cpp.
|
overridevirtual |
Will return the data as a long long int.
Implements Hazelnp::Value.
Definition at line 44 of file IntValue.cpp.
|
overridevirtual |
Throws HazelnuppValueNotConvertibleException.
Implements Hazelnp::Value.
Definition at line 72 of file IntValue.cpp.
|
overridevirtual |
Will return the data as a string.
Implements Hazelnp::Value.
Definition at line 64 of file IntValue.cpp.
const long long int & IntValue::GetValue | ( | ) | const |
IntValue::operator int | ( | ) | const |
Definition at line 37 of file IntValue.cpp.
IntValue::operator long long int | ( | ) | const |
Definition at line 32 of file IntValue.cpp.