Reads and stores configuration information. More...
#include <Config.h>
Public Member Functions | |
Config (std::string configFile) | |
Calls parseConfig to parse the configuration file. More... | |
~Config () | |
Public Attributes | |
ServerConfig * | Server |
Instance of ServerConfig which stores the server connection settings. | |
DatabaseConfig * | Database |
Instance of DatabaseConfig which stores the database server connection settings. | |
ProgramConfig * | Program |
Instance of ProgramConfig which stores program settings. | |
std::map< std::string, PluginConfig > * | Plugins |
List of plugin configurations. | |
Private Member Functions | |
void | parseConfig () |
Reads information from YAML file and puts this in configuration struct(s). | |
void | parsePlugins (YAML::Node plugins) |
Reads plugin information from YAML file. More... | |
Private Attributes | |
std::string | configFile |
Name of the configuration file, set by constructor. | |
Reads and stores configuration information.
Config::Config | ( | std::string | configFile | ) |
Calls parseConfig to parse the configuration file.
configFile | Name of the configuration file. |
Config::~Config | ( | ) |
Deletes and nullifies the serverconfig.
|
private |
Reads plugin information from YAML file.
plugins | YAML node that contains the plugin information. |