|
lib45d
45Drives C++ Library API Documentation
|
Class for config_map_ entries. More...
#include <45d/config/ConfigNode.hpp>
Public Member Functions | |
| ConfigNode (std::string value, std::unordered_map< std::string, ConfigNode > *sub_map) | |
| Construct a new ConfigNode object. More... | |
| ConfigNode (void) | |
| Construct a new empty ConfigNode object. More... | |
| ConfigNode (const ConfigNode &other) | |
| Copy construct a new ConfigNode object. More... | |
| ConfigNode (ConfigNode &&other) | |
| Move constructor. More... | |
| ConfigNode & | operator= (ConfigNode &&other) |
| Assignment move constructor. More... | |
| ~ConfigNode () | |
| Destroy the ConfigNode object. More... | |
Public Attributes | |
| std::string | value_ |
| string from config file after '=' | |
| std::unordered_map< std::string, ConfigNode > * | sub_map_ |
| Pointer to submap for config sections. | |
Class for config_map_ entries.
|
inline |
Construct a new ConfigNode object.
| value | String containing config value or subsection header |
| sub_map | nullptr or pointer to an std::unordered_map<std::string, ffd::ConfigNode> if subsection |
|
inline |
Construct a new empty ConfigNode object.
|
inline |
Copy construct a new ConfigNode object.
Sets is_copy_ flag to prevent double deletion of *sub_map_
| other | ConfigNode to be copied |
|
inline |
Move constructor.
Move value_ and sub_map_ from other to this, and null out sub_map_ pointer in other
| other | ConfigNode to be moved |
|
inline |
Destroy the ConfigNode object.
Deletes the sub_map_ member if allocated and not a copy
|
inline |
Assignment move constructor.
Move value_ and sub_map_ from other to this, and null out sub_map_ pointer in other
| other | ConfigNode to be moved |
1.8.17