43 void getKeys(std::vector<std::string> &keys)
const;
55 std::string substituteVariables(
const std::string &s);
57 std::map<std::string, std::string> m_keyValues;
58 std::map<std::string, std::string> m_variables;
61 #endif // CONFIGREADER_H
bool_t getKeyValue(const std::string &key, std::string &value) const
For the key specified by the key parameter, the corresponding value will be stored in value...
Definition: configreader.cpp:84
Type to return true/false with error description.
Definition: booltype.h:25
bool_t read(const std::string &fileName)
Reads the config file specified by fileName.
Definition: configreader.cpp:18
void printAll() const
Prints all key/value pairs to the standard output.
Definition: configreader.cpp:96
A helper class to read config files.
Definition: configreader.h:33
void getKeys(std::vector< std::string > &keys) const
Stores all keys found in the config file in keys.
Definition: configreader.cpp:112
void clear()
Clears the stored key/value pairs.
Definition: configreader.cpp:107