Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes

ConfigPropertyGetter Class Reference

#include <ConfigPropertyGetter.h>

Collaboration diagram for ConfigPropertyGetter:
Collaboration graph
[legend]

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

static void start_hndl (void *data, const XML_Char *el, const XML_Char **attr)
static void end_hndl (void *data, const XML_Char *el)
static 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

static 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
static 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

static 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]

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