![]() |
Fledge
An open source edge computing platform for industrial users
|
Public Member Functions | |
CategoryItem (const std::string &name, const rapidjson::Value &item) | |
CategoryItem (const std::string &name, const std::string &description, const std::string &type, const std::string def, const std::string &value) | |
CategoryItem (const std::string &name, const std::string &description, const std::string def, const std::string &value, const std::vector< std::string > options) | |
CategoryItem (const CategoryItem &rhs) | |
Copy constructor for configuration item. | |
std::string | toJSON (const bool full=false) const |
Create a JSON representation of the configuration item. More... | |
std::string | defaultToJSON () const |
Return only "default" item values. More... | |
string ConfigCategory::CategoryItem::defaultToJSON | ( | ) | const |
Return only "default" item values.
NOTE: These data types must be all escaped. "default" items in the DefaultConfigCategory class are sent to ConfigurationManager interface which requires string values only:
examples: we must use "100" not 100 and for JSON "{\"pipeline":["scale"]}" not {"pipeline":["scale"]}
string ConfigCategory::CategoryItem::toJSON | ( | const bool | full = false | ) | const |
Create a JSON representation of the configuration item.
full | false is the default, true evaluates all the members of the CategoryItem |