lib45d
45Drives C++ Library Development Documentation
|
23 #include <45d/config/ConfigParser.hpp>
60 "Tried to guard config when ConfigSubsectionGuard already in scope"));
Use this to switch to a certain config subsection to get a group of values.
Definition: ConfigSubsectionGuard.hpp:49
45Drives namespace
Definition: Bytes.hpp:27
ConfigParser & config_
Reference to ConfigParser or inhereting class.
Definition: ConfigSubsectionGuard.hpp:73
bool guarded_
true if a ConfigSubsectionGuard is in scope Set in ConfigSubsectionGuard::ConfigSubsectionGuard() Cle...
Definition: ConfigParser.hpp:437
Throw this exception when a ConfigGuard is constructed or get_from() is called when the config is alr...
Definition: Exceptions.hpp:58
void set_subsection(const std::string §ion)
Update config_map_ptr_ to the subconfig map for section.
Definition: ConfigParser.hpp:479
~ConfigSubsectionGuard(void)
Destroy the Config Subsection Guard object.
Definition: ConfigSubsectionGuard.hpp:68
void reset_subsection(void) noexcept
Set config_map_ptr_ back to the address of config_map_.
Definition: ConfigParser.hpp:493
ConfigSubsectionGuard(ConfigParser &config, const std::string §ion)
Construct a new Config Subsection Guard object.
Definition: ConfigSubsectionGuard.hpp:57
Main configuration parser class to inherit from in your code.
Definition: ConfigParser.hpp:68