Config Class Reference

#include <conf.h>

Inheritance diagram for Config:

Inheritance graph
[legend]
Collaboration diagram for Config:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Config (std::string filename)
 Config ()
void Load (std::string filename)
void SetDefaultString (const std::string &name, const std::string &value)
void SetDefaultInt (const std::string &name, const int &value)
void SetDefaultBool (const std::string &name, const bool &value)
bool Get (const std::string &name, std::string &value)
bool Get (const std::string &name, int &value)
bool Get (const std::string &name, bool &value)
bool Get (const std::string &name, std::list< std::string > &value)
bool Get (const std::string &name, std::list< int > &value)
void SetString (std::string name, const std::string &value)
void SetInt (std::string name, const int &value)
void SetBool (std::string name, const bool &value)
void SetStringList (std::string name, const std::list< std::string > &value)
void SetIntList (std::string name, const std::list< int > &value)
std::string GetAsString ()
void Parse (std::string line)
void ParseShellArgs (int argc, char **argv)
bool IsLoaded ()
void LoadFromStandardPath (std::string filename)
void ReloadLog ()


Detailed Description

Definition at line 10 of file conf.h.


Constructor & Destructor Documentation

Config::Config ( std::string  filename  )  [inline]

Definition at line 16 of file conf.h.

Config::Config (  )  [inline]

Definition at line 17 of file conf.h.


Member Function Documentation

bool Config::Get ( const std::string &  name,
std::list< int > &  value 
) [inline]

Definition at line 32 of file conf.h.

bool Config::Get ( const std::string &  name,
std::list< std::string > &  value 
) [inline]

Definition at line 30 of file conf.h.

bool Config::Get ( const std::string &  name,
bool &  value 
) [inline, virtual]

Implements ConfigInterface.

Definition at line 28 of file conf.h.

bool Config::Get ( const std::string &  name,
int &  value 
) [inline, virtual]

Implements ConfigInterface.

Definition at line 26 of file conf.h.

bool Config::Get ( const std::string &  name,
std::string &  value 
) [inline, virtual]

Implements ConfigInterface.

Definition at line 24 of file conf.h.

std::string Config::GetAsString (  )  [inline, virtual]

Implements ConfigInterface.

Definition at line 42 of file conf.h.

bool Config::IsLoaded (  )  [inline, virtual]

Implements ConfigInterface.

Definition at line 45 of file conf.h.

void Config::Load ( std::string  filename  )  [virtual]

Implements ConfigInterface.

Definition at line 27 of file conf.cpp.

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

Definition at line 18 of file conf.cpp.

void Config::Parse ( std::string  line  )  [inline, virtual]

Implements ConfigInterface.

Definition at line 43 of file conf.h.

void Config::ParseShellArgs ( int  argc,
char **  argv 
) [inline, virtual]

Implements ConfigInterface.

Definition at line 44 of file conf.h.

void Config::ReloadLog (  ) 

Definition at line 33 of file conf.cpp.

void Config::SetBool ( std::string  name,
const bool &  value 
) [inline, virtual]

Implements ConfigInterface.

Definition at line 37 of file conf.h.

void Config::SetDefaultBool ( const std::string &  name,
const bool &  value 
) [inline, virtual]

Implements ConfigInterface.

Definition at line 22 of file conf.h.

void Config::SetDefaultInt ( const std::string &  name,
const int &  value 
) [inline, virtual]

Implements ConfigInterface.

Definition at line 21 of file conf.h.

void Config::SetDefaultString ( const std::string &  name,
const std::string &  value 
) [inline, virtual]

Implements ConfigInterface.

Definition at line 20 of file conf.h.

void Config::SetInt ( std::string  name,
const int &  value 
) [inline, virtual]

Implements ConfigInterface.

Definition at line 36 of file conf.h.

void Config::SetIntList ( std::string  name,
const std::list< int > &  value 
) [inline]

Definition at line 39 of file conf.h.

void Config::SetString ( std::string  name,
const std::string &  value 
) [inline, virtual]

Implements ConfigInterface.

Definition at line 35 of file conf.h.

void Config::SetStringList ( std::string  name,
const std::list< std::string > &  value 
) [inline]

Definition at line 38 of file conf.h.


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

Generated on Sun Oct 10 19:10:04 2010 for libldsw by  doxygen 1.5.8