Leonetienne/Hazelnupp
Simple, easy to use, command line parameter interface
Hazelnupp
Parameter.cpp
Go to the documentation of this file.
1
#include "
Parameter.h
"
2
3
Parameter::Parameter
(
const
std::string& key, const ::Value* value)
4
:
5
key{ key }
6
{
7
this->value = value->Deepcopy();
8
return
;
9
}
10
11
Parameter::~Parameter
()
12
{
13
delete
value;
14
value =
nullptr
;
15
16
return
;
17
}
18
19
const
std::string&
Parameter::Key
()
const
20
{
21
return
key;
22
}
23
24
const ::Value*
Parameter::GetValue
()
const
25
{
26
return
value;
27
}
Parameter::~Parameter
~Parameter()
Definition:
Parameter.cpp:11
Parameter::Key
const std::string & Key() const
Will return the key of this parameter.
Definition:
Parameter.cpp:19
Parameter::GetValue
const Value * GetValue() const
Will return the value of this parameter.
Definition:
Parameter.cpp:24
Parameter.h
Parameter::Parameter
Parameter(const std::string &key, const Value *value)
Definition:
Parameter.cpp:3
Generated on Thu Jun 3 2021 12:21:21 for Leonetienne/Hazelnupp by
1.8.17