fesa::InitializeDataStoreManager Class Reference

this class is responsible for retrieve the information from of the different devices linked to a class More...

#include <InitializeDataStoreManager.h>

List of all members.

Public Member Functions

 InitializeDataStoreManager (const std::string className)
 constructor
 ~InitializeDataStoreManager ()
 destructor
GlobalDeviceElementretrieveGlobalDeviceElement ()
 return the global device from the initialization system (instance file)
const std::vector
< DeviceElement * > & 
retrieveDeviceElements ()
 return the devices from from the initialization system (instance file)
const std::vector
< DomainStoreElement * > & 
retrieveDomainStoreElements ()
 return the devices from from the initialization system (instance file)
int32_t getRollingManagerDepth ()
 return rolling multiplexing manager depth

Private Member Functions

void processDeviceFields (const std::vector< ElementXML * > &fields, DeviceElement *pDeviceElement)
 Processes the device fields in the vector and initialises the DeviceElement.
void fillElement (const ElementXML *pField, FieldElement *pFieldElement)
 this method fills the FieldElement data with the information coming from the XML element
void processDeviceRelationField (const ElementXML *pField, FieldElement *pFieldElement)
 Processes the device-relation device field and initialises the FieldElement.
void processExtraMuxField (const ElementXML *pField, DeviceElement *pDeviceElement)
 Processes the extra mux criterion device field and initialises the DeviceElement.
std::string getFieldValue (const ElementXML *pField)
 Retrieves the initial value of the given field. Returns an empty string of no value can be found.
std::string getAttributeValue (const ElementXML *element)
 Retrieves the value of the value attribute and converts it to an uint32_t. Return 0 if the element is not found.
uint32_t getAttributeValueAsInt (const ElementXML *element)
 Retrieves the value of the value attribute and converts it to an uint32_t. Return 0 if the element is not found.

Private Attributes

XMLParserparser_
 Internal xml parser to get the information.
std::string className_
 name of the class which needs to be parsed
GlobalDeviceElementglobalDeviceElement_
 information for the global device
std::vector< DeviceElement * > pDeviceElementCol_
 information for the devices
std::vector< DomainStoreElement * > pDomainStoreElementCol_
 information for the domain stores

Static Private Attributes

static const int32_t ROLLING_DEFAULT_SIZE = 3

Detailed Description

this class is responsible for retrieve the information from of the different devices linked to a class

Definition at line 26 of file InitializeDataStoreManager.h.


Constructor & Destructor Documentation

fesa::InitializeDataStoreManager::InitializeDataStoreManager ( const std::string  className  ) 

constructor

Parameters:
className name of the class to initialize
Exceptions:
FesaException 

Definition at line 26 of file InitializeDataStoreManager.cpp.

References className_, fesa::AbstractEquipment::getDeviceDataFileName(), fesa::AbstractEquipment::getInstance(), and parser_.

fesa::InitializeDataStoreManager::~InitializeDataStoreManager (  ) 

Member Function Documentation

void fesa::InitializeDataStoreManager::fillElement ( const ElementXML pField,
FieldElement pFieldElement 
) [private]
std::string fesa::InitializeDataStoreManager::getAttributeValue ( const ElementXML element  )  [private]

Retrieves the value of the value attribute and converts it to an uint32_t. Return 0 if the element is not found.

Definition at line 316 of file InitializeDataStoreManager.cpp.

References fesa::ElementXML::attributeList_, fesa::AttributeXML::name_, fesa::AttributeXML::value_, and fesa::VALUE_TAG.

Referenced by getAttributeValueAsInt(), and getFieldValue().

uint32_t fesa::InitializeDataStoreManager::getAttributeValueAsInt ( const ElementXML element  )  [private]

Retrieves the value of the value attribute and converts it to an uint32_t. Return 0 if the element is not found.

Definition at line 330 of file InitializeDataStoreManager.cpp.

References fesa::StringUtilities::fromString(), and getAttributeValue().

Referenced by fillElement().

std::string fesa::InitializeDataStoreManager::getFieldValue ( const ElementXML pField  )  [private]

Retrieves the initial value of the given field. Returns an empty string of no value can be found.

Definition at line 299 of file InitializeDataStoreManager.cpp.

References fesa::ElementXML::childList_, and getAttributeValue().

Referenced by fillElement().

int32_t fesa::InitializeDataStoreManager::getRollingManagerDepth (  ) 
void fesa::InitializeDataStoreManager::processDeviceFields ( const std::vector< ElementXML * > &  fields,
DeviceElement pDeviceElement 
) [private]
void fesa::InitializeDataStoreManager::processDeviceRelationField ( const ElementXML pField,
FieldElement pFieldElement 
) [private]
void fesa::InitializeDataStoreManager::processExtraMuxField ( const ElementXML pField,
DeviceElement pDeviceElement 
) [private]

Processes the extra mux criterion device field and initialises the DeviceElement.

Definition at line 253 of file InitializeDataStoreManager.cpp.

References fesa::ElementXML::childList_, fesa::DeviceElement::extraCriterionCol_, fesa::AttributeXML::name_, and fesa::AttributeXML::value_.

Referenced by processDeviceFields().

const std::vector< DeviceElement * > & fesa::InitializeDataStoreManager::retrieveDeviceElements (  ) 
const std::vector< DomainStoreElement * > & fesa::InitializeDataStoreManager::retrieveDomainStoreElements (  ) 
GlobalDeviceElement & fesa::InitializeDataStoreManager::retrieveGlobalDeviceElement (  ) 

Member Data Documentation

information for the global device

Definition at line 117 of file InitializeDataStoreManager.h.

Referenced by retrieveGlobalDeviceElement(), and ~InitializeDataStoreManager().

information for the devices

Definition at line 122 of file InitializeDataStoreManager.h.

Referenced by retrieveDeviceElements(), and ~InitializeDataStoreManager().

information for the domain stores

Definition at line 127 of file InitializeDataStoreManager.h.

Referenced by retrieveDomainStoreElements(), and ~InitializeDataStoreManager().

const int32_t fesa::InitializeDataStoreManager::ROLLING_DEFAULT_SIZE = 3 [static, private]

Definition at line 66 of file InitializeDataStoreManager.h.

Referenced by getRollingManagerDepth().


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

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1