Used to store all Device-LogicalEvent-specific Information which comes from the Instantiation-File. More...
#include <DeviceLogicalEventElement.h>
Public Member Functions | |
DeviceLogicalEventElement () | |
virtual | ~DeviceLogicalEventElement () |
virtual void | initialize (const std::string &xpath, ElementXML *deviceLogicalEventElement) |
triggers the parsing of the xml-file-structures and initializes the class with all needed information | |
virtual void | connectEventConfigRef (AbstractDevice *device, boost::shared_ptr< ClassElement > classElement) |
connects all event-config-ref-elements on class level, according to the XML-links in the events-mapping of this event-element | |
Private Member Functions | |
void | loadEventConfigurationNameRef (const std::string &xpath, ElementXML *deviceLogicalEventElement) |
loads the xml-event-configuration-name-ref of this logical-event-element | |
Private Attributes | |
std::string | eventConfigurationRefName_ |
name of the event-configuration to which this element refers to | |
std::string | logicalEventName_ |
name of the device-logical-event which is represented by this object | |
boost::shared_ptr < EventConfigurationElement > | eventConfigurationElementRef_ |
link to the event-configuration to which this element refers to | |
bool | isInitialized_ |
true, when initialization of this object was finished successfully |
Used to store all Device-LogicalEvent-specific Information which comes from the Instantiation-File.
Definition at line 20 of file DeviceLogicalEventElement.h.
fesa::DeviceLogicalEventElement::DeviceLogicalEventElement | ( | ) |
Definition at line 14 of file DeviceLogicalEventElement.cpp.
fesa::DeviceLogicalEventElement::~DeviceLogicalEventElement | ( | ) | [virtual] |
Definition at line 19 of file DeviceLogicalEventElement.cpp.
void fesa::DeviceLogicalEventElement::connectEventConfigRef | ( | AbstractDevice * | device, | |
boost::shared_ptr< ClassElement > | classElement | |||
) | [virtual] |
connects all event-config-ref-elements on class level, according to the XML-links in the events-mapping of this event-element
Definition at line 62 of file DeviceLogicalEventElement.cpp.
References eventConfigurationElementRef_, eventConfigurationRefName_, FesaErrorParserElementNotInitialized, isInitialized_, and logicalEventName_.
void fesa::DeviceLogicalEventElement::initialize | ( | const std::string & | xpath, | |
ElementXML * | deviceLogicalEventElement | |||
) | [virtual] |
triggers the parsing of the xml-file-structures and initializes the class with all needed information
Definition at line 24 of file DeviceLogicalEventElement.cpp.
References isInitialized_, loadEventConfigurationNameRef(), logicalEventName_, and fesa::ElementXML::name_.
void fesa::DeviceLogicalEventElement::loadEventConfigurationNameRef | ( | const std::string & | xpath, | |
ElementXML * | deviceLogicalEventElement | |||
) | [private] |
loads the xml-event-configuration-name-ref of this logical-event-element
Definition at line 32 of file DeviceLogicalEventElement.cpp.
References fesa::ElementXML::attributeList_, fesa::ElementXML::childList_, fesa::EVENT_CONFIGURATION_REF_ATTRIBUTE_TAG, fesa::EVENT_CONFIGURATION_REF_TAG, eventConfigurationRefName_, FesaErrorXMLAttributeNotFound, FesaErrorXMLElementNotFound, fesa::AttributeXML::name_, fesa::ElementXML::name_, and fesa::AttributeXML::value_.
Referenced by initialize().
boost::shared_ptr<EventConfigurationElement> fesa::DeviceLogicalEventElement::eventConfigurationElementRef_ [private] |
link to the event-configuration to which this element refers to
Definition at line 58 of file DeviceLogicalEventElement.h.
Referenced by connectEventConfigRef().
std::string fesa::DeviceLogicalEventElement::eventConfigurationRefName_ [private] |
name of the event-configuration to which this element refers to
Definition at line 48 of file DeviceLogicalEventElement.h.
Referenced by connectEventConfigRef(), and loadEventConfigurationNameRef().
bool fesa::DeviceLogicalEventElement::isInitialized_ [private] |
true, when initialization of this object was finished successfully
Definition at line 63 of file DeviceLogicalEventElement.h.
Referenced by connectEventConfigRef(), and initialize().
std::string fesa::DeviceLogicalEventElement::logicalEventName_ [private] |
name of the device-logical-event which is represented by this object
Definition at line 53 of file DeviceLogicalEventElement.h.
Referenced by connectEventConfigRef(), and initialize().