55 explicit Config(std::string
const& iniFile);
61 Config(std::initializer_list<std::pair<std::pair<std::string, std::string>, std::string>>
init);
68 void read(std::string
const& iniFile);
75 void insert(std::initializer_list<std::pair<std::pair<std::string, std::string>, std::string>>
init);
81 void override(std::vector<std::pair<std::pair<std::string, std::string>, std::string>>
const& overrides);
88 [[nodiscard]]
bool isSet(std::pair<std::string, std::string>
const& key)
const;
96 std::string
operator[](std::pair<std::string, std::string>
const& key)
const;
103 void set(std::pair<std::string, std::string> key, std::string value);
111 void set(std::string section, std::string key, std::string value);
int init(nawa::AppInit &appInit)
std::string operator[](std::pair< std::string, std::string > const &key) const
bool isSet(std::pair< std::string, std::string > const &key) const
void insert(std::initializer_list< std::pair< std::pair< std::string, std::string >, std::string > > init)
void read(std::string const &iniFile)
void set(std::pair< std::string, std::string > key, std::string value)
Macros for frequently used patterns.
#define NAWA_DEFAULT_DESTRUCTOR_DEF(Class)
#define NAWA_DEFAULT_CONSTRUCTOR_DEF(Class)
#define NAWA_MOVE_CONSTRUCTOR_DEF(Class)
#define NAWA_COPY_ASSIGNMENT_OPERATOR_DEF(Class)
#define NAWA_PRIVATE_DATA()
#define NAWA_MOVE_ASSIGNMENT_OPERATOR_DEF(Class)
#define NAWA_COPY_CONSTRUCTOR_DEF(Class)