Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

SLConfig Class Reference
[segusoland C++ Library]

This class holds the configuration variables and their values. More...

#include <SLConfig.hpp>

Collaboration diagram for SLConfig:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SLConfig ()
const SLStringget (const SLString &varName) const throw (SLConfig::NotFoundException)
void set (const SLString &varName, const SLString &value)
void humanListing (std::ostream &out) const

Protected Attributes

boost::shared_ptr< Data > _shared_ptr

Detailed Description

This class holds the configuration variables and their values.

Author:
Alexandre Sauve

Todo:
Optimize this poor class.
The purpose of this object is to be a container. It does not parsing or file access at all.

SLConfig uses shared_ptr, see the Library section for details.


Constructor & Destructor Documentation

SLConfig::SLConfig  ) 
 

The default constructor builds an *empty* container.


Member Function Documentation

const SLString& SLConfig::get const SLString varName  )  const throw (SLConfig::NotFoundException)
 

Returns the value of a given config variable.

void SLConfig::humanListing std::ostream &  out  )  const
 

This function is mainly for debug purpose and list the config content on the given iostream (std::cout or std::cerr for example).

void SLConfig::set const SLString varName,
const SLString value
 

Sets the value of a given config variable.


Member Data Documentation

boost::shared_ptr<Data> SLConfig::_shared_ptr [protected]
 

This variable holds the various config data in an efficient and memory leaks proof way.


The documentation for this class was generated from the following file:
Generated on Mon Apr 19 01:03:34 2004 for segusoLand by doxygen 1.3.6-20040222