Mania++
 All Classes Functions Variables Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
Config Class Reference

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

ServerConfigServer
 Instance of ServerConfig which stores the server connection settings.
 
DatabaseConfigDatabase
 Instance of DatabaseConfig which stores the database server connection settings.
 
ProgramConfigProgram
 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.
 

Detailed Description

Reads and stores configuration information.

Constructor & Destructor Documentation

Config::Config ( std::string  configFile)

Calls parseConfig to parse the configuration file.

Parameters
configFileName of the configuration file.
Config::~Config ( )

Deletes and nullifies the serverconfig.

Member Function Documentation

void Config::parsePlugins ( YAML::Node  plugins)
private

Reads plugin information from YAML file.

Parameters
pluginsYAML node that contains the plugin information.

The documentation for this class was generated from the following files: