#include <event.h>
Inheritance diagram for Event:

Public Member Functions | |
| Event (const int eventID=-1) | |
| Constructor. | |
| ~Event () | |
| Destructor. | |
| const int | getEventID () const |
| Returns the event ID. | |
| void | setEventID (const int eventID) |
| Sets the event ID. | |
| virtual void | processMessage () const =0 |
| Abstract method which process the event. | |
| void | toXML (XMLWriter &) const |
| Write a XML representation of this object. | |
| virtual void | toXMLExt (XMLWriter &) const =0 |
| Specific method for derived class to write their own XML specific representation. | |
| virtual std::string | toString () const |
| Returns a string representation of the event. | |
Static Public Attributes | |
| static const char * | EVENT_ROOT = "event" |
| Event root node. | |
| static const char * | CONTACTID_ATTR = "contact-id" |
| Possible value of ID_ATTR. It means that the param node will containt a contact id value. | |
| static const char * | STATE_ATTR = "state" |
| Possible value of ID_ATTR. It means that the param node will containt a state value. | |
| static const char * | ID_ATTR = "id" |
| Attribute used to inform which type of information we are going to provide. | |
| static const char * | PARAM_NODE = "param" |
| Param node. | |
Yves Houpert <yves.houpert@insa-rouen.fr>
|
|
Constructor.
|
|
|
Returns the event ID.
|
|
|
Sets the event ID.
|
|
|
Returns a string representation of the event.
Implements BaseMessage. Reimplemented in StateChangedEvent. |
|
|
Specific method for derived class to write their own XML specific representation.
Implemented in StateChangedEvent. |
|
|
Possible value of ID_ATTR. It means that the param node will containt a contact id value. More precisely, the contact ID is the contact ID which state has changed. |
|
|
Attribute used to inform which type of information we are going to provide. It is used in param node. |
|
|
Possible value of ID_ATTR. It means that the param node will containt a state value. More precisely, it's the new state of the contact. |
1.4.6