Parameter.cpp
Go to the documentation of this file.
#include "Parameter.h"
using namespace Hazelnp;
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;
}
Hazelnp
Definition: DataType.h:3
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