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

ConfigPropertyGetter Class Reference

#include <ConfigPropertyGetter.h>

List of all members.

Public Member Functions

 ConfigPropertyGetter (maci::Manager_ptr manager)
 ~ConfigPropertyGetter ()
std::string getProperty (std::string propName)

Private Member Functions

std::string getDAO (maci::Manager_ptr manager)
void parseDAO ()

Static Private Member Functions

void start_hndl (void *data, const XML_Char *el, const XML_Char **attr)
void end_hndl (void *data, const XML_Char *el)
void char_hndl (void *data, const XML_Char *s, int len)

Private Attributes

std::string m_dao
std::list< Property > * m_properties


Detailed Description

Object of this class get a property with the given name from the CDB (The property must be into AlarmSystemConfiguration.xml


Constructor & Destructor Documentation

ConfigPropertyGetter::ConfigPropertyGetter maci::Manager_ptr  manager  ) 
 

ConfigPropertyGetter::~ConfigPropertyGetter  ) 
 


Member Function Documentation

void ConfigPropertyGetter::char_hndl void *  data,
const XML_Char s,
int  len
[static, private]
 

The handler for the char element

See also:
libexpat documentation for further info

void ConfigPropertyGetter::end_hndl void *  data,
const XML_Char el
[static, private]
 

The handler for the end element

See also:
libexpat documentation for further info

std::string ConfigPropertyGetter::getDAO maci::Manager_ptr  manager  )  [private]
 

Get the DAO for the AS properties

Return an empty string if the DAO doesn't exist (this is not an error because the missing DAO means to use ACS implementation)

std::string ConfigPropertyGetter::getProperty std::string  propName  ) 
 

Return the value of a property with the given name scanning the list of properties

It returns an empty string if the property doesn't exist or any other error occurs

void ConfigPropertyGetter::parseDAO  )  [private]
 

Parse the DAO building the list of the properties

void ConfigPropertyGetter::start_hndl void *  data,
const XML_Char el,
const XML_Char **  attr
[static, private]
 

The handler for the start element

See also:
libexpat documentation for further info


Member Data Documentation

std::string ConfigPropertyGetter::m_dao [private]
 

std::list<Property>* ConfigPropertyGetter::m_properties [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:36:13 2009 for ACS C++ API by doxygen 1.3.8