Leonetienne/Hazelnupp
Simple, easy to use, command line parameter interface
Parameter.cpp
Go to the documentation of this file.
2
3using namespace Hazelnp;
4
5Parameter::Parameter(const std::string& key, const ::Value* value)
6 :
7 key{ key }
8{
9 this->value = value->Deepcopy();
10 return;
11}
12
14{
15 delete value;
16 value = nullptr;
17
18 return;
19}
20
21const std::string& Parameter::Key() const
22{
23 return key;
24}
25
26const ::Value* Parameter::GetValue() const
27{
28 return value;
29}
const Value * GetValue() const
Will return the value of this parameter.
Definition: Parameter.cpp:26
const std::string & Key() const
Will return the key of this parameter.
Definition: Parameter.cpp:21