Section.
More...
#include <ConfigUtil.h>
|
| | Section (std::string name) |
| |
| std::string | getValueByKey (const std::string &key, const std::string &default_value) const |
| |
| void | setKeyValue (const std::string &key, const std::string &value) |
| |
|
| std::string | name |
| |
| std::map< std::string, std::string > | parameter {} |
| |
◆ Ptr
◆ Section()
| sese::ConfigObject::Section::Section |
( |
std::string | name | ) |
|
|
explicit |
◆ getValueByKey()
| std::string sese::ConfigObject::Section::getValueByKey |
( |
const std::string & | key, |
|
|
const std::string & | default_value ) const |
|
nodiscard |
Retrieves the value based on the key name
- Parameters
-
| key | The key name |
| default_value | The default value |
- Returns
- The corresponding value if the key exists, otherwise returns the default value
◆ setKeyValue()
| void sese::ConfigObject::Section::setKeyValue |
( |
const std::string & | key, |
|
|
const std::string & | value ) |
◆ name
| std::string sese::ConfigObject::Section::name |
◆ parameter
| std::map<std::string, std::string> sese::ConfigObject::Section::parameter {} |
The documentation for this struct was generated from the following file: