![]() |
Leonetienne/Hazelnupp
Simple, easy to use, command line parameter interface
|
Specializations for string values (uses std::string) More...
#include <StringValue.h>
Public Member Functions | |
StringValue (const std::string &value) | |
~StringValue () 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 std::string & | GetValue () const |
Will return the raw value. More... | |
operator std::string () const | |
long long int | GetInt64 () const override |
Throws HazelnuppValueNotConvertibleException. More... | |
int | GetInt32 () const override |
Throws HazelnuppValueNotConvertibleException. More... | |
long double | GetFloat64 () const override |
Throws HazelnuppValueNotConvertibleException. More... | |
double | GetFloat32 () const override |
Throws HazelnuppValueNotConvertibleException. More... | |
std::string | GetString () const override |
Will return this value 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 string values (uses std::string)
Definition at line 7 of file StringValue.h.
StringValue::StringValue | ( | const std::string & | value | ) |
Definition at line 5 of file StringValue.cpp.
|
inlineoverride |
Definition at line 11 of file StringValue.h.
|
overridevirtual |
Will return a deeopopy of this object.
Implements Value.
Definition at line 13 of file StringValue.cpp.
|
overridevirtual |
Will return a string suitable for an std::ostream;.
Implements Value.
Definition at line 18 of file StringValue.cpp.
|
overridevirtual |
Throws HazelnuppValueNotConvertibleException.
Implements Value.
Definition at line 52 of file StringValue.cpp.
|
overridevirtual |
Throws HazelnuppValueNotConvertibleException.
Implements Value.
Definition at line 47 of file StringValue.cpp.
|
overridevirtual |
Throws HazelnuppValueNotConvertibleException.
Implements Value.
Definition at line 42 of file StringValue.cpp.
|
overridevirtual |
Throws HazelnuppValueNotConvertibleException.
Implements Value.
Definition at line 37 of file StringValue.cpp.
|
overridevirtual |
Throws HazelnuppValueNotConvertibleException.
Implements Value.
Definition at line 62 of file StringValue.cpp.
|
overridevirtual |
Will return this value as a string.
Implements Value.
Definition at line 57 of file StringValue.cpp.
const std::string & StringValue::GetValue | ( | ) | const |
Will return the raw value.
Definition at line 25 of file StringValue.cpp.
StringValue::operator std::string | ( | ) | const |
Definition at line 30 of file StringValue.cpp.