Leonetienne/Hazelnupp
Simple, easy to use, command line parameter interface
VoidValue.cpp
Go to the documentation of this file.
3
4using namespace Hazelnp;
5
6VoidValue::VoidValue()
7 :
9{
10 return;
11}
12
14{
15 return new VoidValue();
16}
17
18std::string VoidValue::GetAsOsString() const
19{
20 return "VoidValue";
21}
22
23
24
25long long int VoidValue::GetInt64() const
26{
28}
29
31{
33}
34
35long double VoidValue::GetFloat64() const
36{
38}
39
41{
43}
44
45std::string VoidValue::GetString() const
46{
47 return "";
48}
49
50const std::vector<Value*>& VoidValue::GetList() const
51{
52 static const std::vector<Value*> empty;
53 return empty;
54}
Gets thrown when an attempt is made to retrieve the wrong data type from a value, when the value not ...
Abstract class for values.
Definition: Value.h:11
const std::vector< Value * > & GetList() const override
Returns an empty list.
Definition: VoidValue.cpp:50
long double GetFloat64() const override
Throws HazelnuppValueNotConvertibleException.
Definition: VoidValue.cpp:35
long long int GetInt64() const override
Throws HazelnuppValueNotConvertibleException.
Definition: VoidValue.cpp:25
std::string GetAsOsString() const override
Will return a string suitable for an std::ostream;.
Definition: VoidValue.cpp:18
std::string GetString() const override
Returns an empty string.
Definition: VoidValue.cpp:45
int GetInt32() const override
Throws HazelnuppValueNotConvertibleException.
Definition: VoidValue.cpp:30
double GetFloat32() const override
Throws HazelnuppValueNotConvertibleException.
Definition: VoidValue.cpp:40
Value * Deepcopy() const override
Will return a deeopopy of this object.
Definition: VoidValue.cpp:13
DATA_TYPE
The different data types a paramater can be.
Definition: DataType.h:9