28 lines
375 B
C++
28 lines
375 B
C++
#include "Parameter.h"
|
|
|
|
Parameter::Parameter(const std::string& key, const ::Value* value)
|
|
:
|
|
key{ key }
|
|
{
|
|
this->value = value->Deepcopy();
|
|
return;
|
|
}
|
|
|
|
Parameter::~Parameter()
|
|
{
|
|
delete value;
|
|
value = nullptr;
|
|
|
|
return;
|
|
}
|
|
|
|
const std::string& Parameter::Key() const
|
|
{
|
|
return key;
|
|
}
|
|
|
|
const ::Value* Parameter::GetValue() const
|
|
{
|
|
return value;
|
|
}
|