Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

P::Config::Key Class Reference

Configuration key class. More...

#include <pconfig.h>

List of all members.

Public Types

typedef std::multimap< std::string,
std::string > 
value_map
typedef value_map::const_iterator value_iterator
typedef std::multimap< std::string,
Key * > 
key_map
typedef key_map::const_iterator key_iterator

Public Member Functions

const std::string & value (const std::string &name, const std::string &def)
 Retrieve config value.

void setValue (const std::string &name, const std::string &value)
 Set config value.

void removeValue (const std::string &name)
Keykey (const std::string &name)
 Retrieve pointer to config key.

KeyaddKey (const std::string &name)
 Add config key.

void removeKey (const std::string &name)
 Remove config key.

const value_mapvalues () const
const key_mapkeys () const

Protected Member Functions

 Key (Config *cfg, const std::string &name)
 ~Key ()

Friends

class Config


Detailed Description

Configuration key class.

Definition at line 49 of file pconfig.h.


Member Typedef Documentation

typedef key_map::const_iterator P::Config::Key::key_iterator
 

Definition at line 57 of file pconfig.h.

typedef std::multimap<std::string, Key*> P::Config::Key::key_map
 

Definition at line 56 of file pconfig.h.

typedef value_map::const_iterator P::Config::Key::value_iterator
 

Definition at line 54 of file pconfig.h.

typedef std::multimap<std::string, std::string> P::Config::Key::value_map
 

Definition at line 53 of file pconfig.h.


Constructor & Destructor Documentation

P::Config::Key::Key Config cfg,
const std::string &  name
[protected]
 

P::Config::Key::~Key  )  [protected]
 


Member Function Documentation

Key* P::Config::Key::addKey const std::string &  name  ) 
 

Add config key.

Key* P::Config::Key::key const std::string &  name  ) 
 

Retrieve pointer to config key.

const key_map& P::Config::Key::keys  )  const [inline]
 

Definition at line 80 of file pconfig.h.

void P::Config::Key::removeKey const std::string &  name  ) 
 

Remove config key.

void P::Config::Key::removeValue const std::string &  name  ) 
 

void P::Config::Key::setValue const std::string &  name,
const std::string &  value
 

Set config value.

const std::string& P::Config::Key::value const std::string &  name,
const std::string &  def
 

Retrieve config value.

const value_map& P::Config::Key::values  )  const [inline]
 

Definition at line 77 of file pconfig.h.


Friends And Related Function Documentation

friend class Config [friend]
 

Definition at line 50 of file pconfig.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 12 21:08:32 2004 for P::Classes by doxygen 1.3.3