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. | |
| std::map< std::string, Permission > * | Permissions | 
| Overview of permissions from configuration. | |
| Private Member Functions | |
| void | parseConfig () | 
| Reads information from YAML file and puts this in configuration struct(s). | |
| void | parsePermissions (YAML::Node permissions) | 
| Reads permissions from YAML file.  More... | |
| 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 permissions from YAML file.
| permissions | YAML node that contains the permissions. | 
| 
 | private | 
Reads plugin information from YAML file.
| plugins | YAML node that contains the plugin information. | 
 1.8.6
 1.8.6