This class provides access to the events specified in the instance document. More...
#include <EventsMappingLoader.h>
Public Member Functions | |
EventsMappingLoader (boost::shared_ptr< ClassElement > classElement, XMLParser *parser) | |
constructor | |
~EventsMappingLoader () | |
EventMap | getEventMap () const |
the event map of all LogicalEvents and the connected active EventElements <eventName,vector<EventElement>> | |
std::vector< EventElementPointer > | getEventElementCol (const std::string &logicalEventName) const |
all active EventElements of a logical-event | |
Protected Member Functions | |
void | loadEventsMapping (XMLParser *parser) |
This method triggers the read-out of the Instantiation file. | |
void | deleteXMLElements (std::vector< ElementXML * > *xmlElements) const |
Private Attributes | |
boost::shared_ptr< ClassElement > | classElement_ |
element, in order to store all information which came from the Instantiation file |
This class provides access to the events specified in the instance document.
Definition at line 25 of file EventsMappingLoader.h.
fesa::EventsMappingLoader::EventsMappingLoader | ( | boost::shared_ptr< ClassElement > | classElement, | |
XMLParser * | parser | |||
) |
constructor
classElement | class element which should be used to store the instantiation info | |
xml-parser | which will be used for parsing |
Definition at line 13 of file EventsMappingLoader.cpp.
References loadEventsMapping().
fesa::EventsMappingLoader::~EventsMappingLoader | ( | ) |
Definition at line 18 of file EventsMappingLoader.cpp.
void fesa::EventsMappingLoader::deleteXMLElements | ( | std::vector< ElementXML * > * | xmlElements | ) | const [protected] |
Definition at line 65 of file EventsMappingLoader.cpp.
Referenced by loadEventsMapping().
std::vector< EventElementPointer > fesa::EventsMappingLoader::getEventElementCol | ( | const std::string & | logicalEventName | ) | const |
all active EventElements of a logical-event
Definition at line 23 of file EventsMappingLoader.cpp.
References classElement_.
Referenced by fesa::RTController::createRTActionConfig().
EventMap fesa::EventsMappingLoader::getEventMap | ( | ) | const |
the event map of all LogicalEvents and the connected active EventElements <eventName,vector<EventElement>>
Definition at line 28 of file EventsMappingLoader.cpp.
References classElement_.
void fesa::EventsMappingLoader::loadEventsMapping | ( | XMLParser * | parser | ) | [protected] |
This method triggers the read-out of the Instantiation file.
Definition at line 33 of file EventsMappingLoader.cpp.
References fesa::CLASS_BASE_PATH, classElement_, deleteXMLElements(), fesa::XMLParser::extractElementsFromXPath(), and FesaErrorXMLElementNotFound.
Referenced by EventsMappingLoader().
boost::shared_ptr<ClassElement> fesa::EventsMappingLoader::classElement_ [private] |
element, in order to store all information which came from the Instantiation file
Definition at line 62 of file EventsMappingLoader.h.
Referenced by getEventElementCol(), getEventMap(), and loadEventsMapping().