Sese Framework
3.0.0
A cross-platform framework
|
Traditional configuration file class. More...
#include <ConfigUtil.h>
Classes | |
struct | Section |
Section. More... | |
Public Types | |
using | Ptr = std::shared_ptr<ConfigObject> |
Public Member Functions | |
ConfigObject () | |
Section::Ptr | getDefaultSection () const noexcept |
Section::Ptr | getSectionByName (const std::string §ion_name) const |
void | setSection (const Section::Ptr §ion) |
const std::map< std::string, Section::Ptr > & | getAllSection () const |
Private Attributes | |
Section::Ptr | defaultSection |
std::map< std::string, Section::Ptr > | sections |
Traditional configuration file class.
using sese::ConfigObject::Ptr = std::shared_ptr<ConfigObject> |
sese::ConfigObject::ConfigObject | ( | ) |
|
nodiscard |
|
inlinenodiscardnoexcept |
References defaultSection.
|
nodiscard |
Retrieves the section based on the section name
section_name | The name of the section |
void sese::ConfigObject::setSection | ( | const Section::Ptr & | section | ) |
|
private |
Referenced by getDefaultSection().
|
private |