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
using namespace
Hazelnp
;
4
5
Parameter::Parameter
(
const
std::string& key, const ::Value* value)
6
:
7
key{ key }
8
{
9
this->value = value->Deepcopy();
10
return
;
11
}
12
13
Parameter::~Parameter
()
14
{
15
delete
value;
16
value =
nullptr
;
17
18
return
;
19
}
20
21
const
std::string&
Parameter::Key
()
const
22
{
23
return
key;
24
}
25
26
const ::Value*
Parameter::GetValue
()
const
27
{
28
return
value;
29
}
Hazelnp
Definition:
DataType.h:4
Hazelnp::Parameter::~Parameter
~Parameter()
Definition:
Parameter.cpp:13
Hazelnp::Parameter::GetValue
const Value * GetValue() const
Will return the value of this parameter.
Definition:
Parameter.cpp:26
Hazelnp::Parameter::Key
const std::string & Key() const
Will return the key of this parameter.
Definition:
Parameter.cpp:21
Hazelnp::Parameter::Parameter
Parameter(const std::string &key, const Value *value)
Definition:
Parameter.cpp:5
Parameter.h
Generated on Fri Jun 4 2021 15:58:56 for Leonetienne/Hazelnupp by
1.8.17