Config Class Reference

Reads configuration data from a file. More...

#include <config.hpp>

List of all members.

Public Member Functions

 Config ()
 Construct an empty Config object which should have Read() called on it.
 Config (std::string filename)
 Reads all configuration data from the file to memory.
void Read (std::string filename)
 Reads all configuration data from the file to memory.

Static Public Attributes

static const std::size_t MaxLineLength = 4096
 Maximum length of a line in the configuration file.

Protected Attributes

std::string filename
 Filename of the configuration file.


Detailed Description

Reads configuration data from a file.

Does not support sections in files (they're usually ignored).


Constructor & Destructor Documentation

Config::Config (  ) 

Construct an empty Config object which should have Read() called on it.

Config::Config ( std::string  filename  ) 

Reads all configuration data from the file to memory.

Parameters:
filename File to read from.


Member Function Documentation

void Config::Read ( std::string  filename  ) 

Reads all configuration data from the file to memory.

Parameters:
filename File to read from.


Member Data Documentation

std::string Config::filename [protected]

Filename of the configuration file.

Stored in case save support is ever added.

const std::size_t Config::MaxLineLength = 4096 [static]

Maximum length of a line in the configuration file.


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

Generated on Sun Apr 5 20:28:19 2009 for EOServ by  doxygen 1.5.7.1