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