Leonetienne/Hazelnupp
Simple, easy to use, command line parameter interface
VoidValue.h
Go to the documentation of this file.
1 #pragma once
2 #include "Value.h"
3 
6 class VoidValue : public Value
7 {
8 public:
9  VoidValue();
10  ~VoidValue() override {};
11 
13  Value* Deepcopy() const override;
14 
16  std::string GetAsOsString() const override;
17 
19  long long int GetInt64() const override;
21  int GetInt32() const override;
22 
24  long double GetFloat64() const override;
26  double GetFloat32() const override;
27 
29  std::string GetString() const override;
30 
32  const std::vector<Value*>& GetList() const;
33 };
VoidValue::GetString
std::string GetString() const override
Throws HazelnuppValueNotConvertibleException.
Definition: VoidValue.cpp:43
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
VoidValue
Specializations for void values.
Definition: VoidValue.h:6
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
Value.h
VoidValue::~VoidValue
~VoidValue() override
Definition: VoidValue.h:10
VoidValue::GetList
const std::vector< Value * > & GetList() const
Throws HazelnuppValueNotConvertibleException.
Definition: VoidValue.cpp:48