ConfigPropertyGetter − |
#include <ConfigPropertyGetter.h> |
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 |
Object of this class get a property with the given name from the CDB (The property must be into AlarmSystemConfiguration.xml |
ConfigPropertyGetter::ConfigPropertyGetter (maci::Manager_ptr manager) |
ConfigPropertyGetter::~ConfigPropertyGetter () |
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 |
std::string ConfigPropertyGetter::m_dao [private] |
std::list<Property>* ConfigPropertyGetter::m_properties [private] |
Generated automatically by Doxygen for ACS-2015.2 C++ API from the source code. |