buffy::ConfigItem Class Reference

Encapsulates a generic item in the configuration. More...

#include <Config.h>

Inheritance diagram for buffy::ConfigItem:

buffy::ConfigItemBool buffy::ConfigItemDictionary buffy::ConfigItemInt buffy::ConfigItemLocations buffy::ConfigItemMailPrograms buffy::ConfigItemString List of all members.

Public Member Functions

virtual ~ConfigItem ()

Protected Member Functions

 ConfigItem (Config &config, const std::string &path)
xmlpp::Element * node ()
xmlpp::Element * nodeIfExists ()

Protected Attributes

Configm_config
std::string m_path

Friends

class Config
 Check if this node contains a child with the given name bool has(const std::string& nodeName);.

Detailed Description

Encapsulates a generic item in the configuration.

It is the father of a hierarchy, and it cannot be used to access the node value.


Constructor & Destructor Documentation

ConfigItem::ConfigItem Config config,
const std::string &  path
[protected]
 

virtual buffy::ConfigItem::~ConfigItem  )  [inline, virtual]
 


Member Function Documentation

xmlpp::Element * ConfigItem::node  )  [protected]
 

xmlpp::Element * ConfigItem::nodeIfExists  )  [protected]
 


Friends And Related Function Documentation

friend class Config [friend]
 

Check if this node contains a child with the given name bool has(const std::string& nodeName);.

Reimplemented in buffy::ConfigItemBool, buffy::ConfigItemInt, buffy::ConfigItemString, buffy::ConfigItemLocations, buffy::ConfigItemMailPrograms, and buffy::ConfigItemDictionary.


Member Data Documentation

Config& buffy::ConfigItem::m_config [protected]
 

std::string buffy::ConfigItem::m_path [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Nov 30 18:18:30 2005 for libbuffy by  doxygen 1.4.5