1 #include <samchon/namtree/NTParameter.hpp> 2 # include <samchon/namtree/NTParameterDetermined.hpp> 4 #include <samchon/library/XML.hpp> 13 auto NTParameter::TAG() const ->
string {
return "parameter"; }
14 auto NTParameter::CHILD_TAG() const ->
string {
return "parameterDetermined"; }
16 NTParameter::NTParameter()
26 name = xml->getProperty(
"name");
27 if (xml->hasProperty(
"initialValue"))
55 xml->setProperty(
"name",
name);
An entity, a standard data class.
double initialValue
An initial, default value.
std::string name
Name of a paremeter.
virtual auto key() const -> std::string override
Get a key that can identify the Entity uniquely.
virtual void construct(std::shared_ptr< library::XML >)
Construct data of the Entity from an XML object.
An interface for exploration.
virtual auto toXML() const -> std::shared_ptr< library::XML >
Get an XML object represents the Entity.
virtual void construct(std::shared_ptr< library::XML >) override
Construct data of the Entity from an XML object.
virtual auto toXML() const -> std::shared_ptr< library::XML >
Get an XML object represents the EntityGroup.
Package of network protocol and libraries.
auto getInitialValue() const -> double
Get initial, default vlaue.
virtual auto toXML() const -> std::shared_ptr< library::XML > override
Get an XML object represents the Entity.
auto getName() const -> std::string
Get name.
virtual auto createChild(std::shared_ptr< library::XML >) -> NTParameterDetermined *override
Factory method of a child Entity.
XML is a class representing xml object.
A pre-determined value of a parameter.
virtual void construct(std::shared_ptr< library::XML > xml)
Construct data of the Entity from an XML object.
Top level namespace of products built from samchon.