9 #ifndef IFW_CTD_PARAM_PARAMETER_HPP_
10 #define IFW_CTD_PARAM_PARAMETER_HPP_
31 const std::string value,
32 const std::string comment =
"");
101 #endif // !IFW_CTD_PARAM_PARAMETER_HPP_
Parameter & operator=(const Parameter &source)
Copy operator.
Definition: Parameter.cpp:39
void GetValue(TYPE &value) const
Get parameter value as its native data type.
Definition: Parameter.hpp:71
std::string NbToStr(const TYPE number, const std::string &format="")
Convert the given value to a string representation.
Definition: conversion.hpp:26
std::string m_value
Definition: Parameter.hpp:91
bool NoValue() const
Return true if no value has been set for the parameter.
Definition: Parameter.cpp:113
std::string m_comment
Definition: Parameter.hpp:92
const std::string NO_VALUE
Definition: Parameter.hpp:21
Parameter & SetValue(const std::string &value)
Set parameter value.
Definition: Parameter.cpp:84
std::string GetValue() const
Get parameter value as a string.
Definition: Parameter.cpp:102
Parameter & SetComment(const std::string &comment)
Set parameter comment.
Definition: Parameter.cpp:147
void Convert(const std::string &str_value, std::string &native_value)
Handle case: Conversion of std::string to std::string.
Definition: conversion.cpp:52
Parameter & SetValue(TYPE &value)
Set parameter value as its native data type.
Definition: Parameter.hpp:56
Parameter & Clear()
Clear the internal members.
Definition: Parameter.cpp:48
Parameter & SetName(const std::string name)
Set parameter name.
Definition: Parameter.cpp:68
std::string m_name
Definition: Parameter.hpp:90
~Parameter()
Definition: Parameter.cpp:33
Class to handle information for one parameter.
Definition: Parameter.hpp:24
std::string GetComment() const
Get parameter comment.
Definition: Parameter.cpp:120
Parameter()
Definition: Parameter.cpp:8
std::string GetName() const
Return parameter name.
Definition: Parameter.cpp:77
std::string ToString() const
Print out parameter.
Definition: Parameter.cpp:127