#include <logic_event.h>
Nevrax France
Definition at line 51 of file logic_event.h.
Public Member Functions | |
| CLogicEventMessage () | |
| void | read (xmlNodePtr node, const char *subName="") |
| void | write (xmlNodePtr node, const char *subName="") const |
Data Fields | |
| std::string | Arguments |
| message arguments | |
| std::string | Destination |
| message destination | |
| NLMISC::CEntityId | DestinationId |
| message destination id | |
| std::string | MessageId |
| message id | |
| bool | Sent |
| true if the message has been sent | |
| bool | ToSend |
| true if the message has to be sent | |
|
|
Default constructor Definition at line 76 of file logic_event.h. References Arguments, Destination, DestinationId, MessageId, Sent, NLMISC::CEntityId::setCreatorId(), NLMISC::CEntityId::setDynamicId(), NLMISC::CEntityId::setType(), and ToSend.
00077 {
00078 ToSend = false;
00079 Sent = false;
00080 Destination = "no_destination";
00081 MessageId = "no_id";
00082 DestinationId.setType( 0xfe );
00083 DestinationId.setCreatorId( 0 );
00084 DestinationId.setDynamicId( 0 );
00085 Arguments = "no_arguments";
00086 }
|
|
||||||||||||
|
Definition at line 68 of file logic_event.cpp. References Arguments, Destination, DestinationId, NLLOGIC::getXMLProp(), MessageId, and NLLOGIC::xmlCheckNodeName(). Referenced by NLLOGIC::CLogicEventAction::read().
00069 {
00070 xmlCheckNodeName (node, string(string(subName)+string("EVENT_MESSAGE")).c_str());
00071
00072 Destination = getXMLProp (node, "Destination");
00073 DestinationId = atoiInt64(getXMLProp (node, "DestinationId").c_str());
00074 MessageId = getXMLProp (node, "MessageId");
00075 Arguments = getXMLProp (node, "Arguments");
00076 }
|
|
||||||||||||
|
serial Definition at line 59 of file logic_event.cpp. References Arguments, Destination, DestinationId, and MessageId. Referenced by NLLOGIC::CLogicEventAction::write().
00060 {
00061 xmlNodePtr elmPtr = xmlNewChild ( node, NULL, (const xmlChar*)string(string(subName)+string("EVENT_MESSAGE")).c_str(), NULL);
00062 xmlSetProp (elmPtr, (const xmlChar*)"Destination", (const xmlChar*)Destination.c_str());
00063 xmlSetProp (elmPtr, (const xmlChar*)"DestinationId", (const xmlChar*)toString(DestinationId).c_str());
00064 xmlSetProp (elmPtr, (const xmlChar*)"MessageId", (const xmlChar*)toString(MessageId).c_str());
00065 xmlSetProp (elmPtr, (const xmlChar*)"Arguments", (const xmlChar*)toString(Arguments).c_str());
00066 }
|
|
|
message arguments
Definition at line 71 of file logic_event.h. Referenced by CLogicEventMessage(), read(), and write(). |
|
|
message destination
Definition at line 62 of file logic_event.h. Referenced by CLogicEventMessage(), read(), and write(). |
|
|
message destination id
Definition at line 65 of file logic_event.h. Referenced by CLogicEventMessage(), read(), and write(). |
|
|
message id
Definition at line 68 of file logic_event.h. Referenced by CLogicEventMessage(), read(), and write(). |
|
|
true if the message has been sent
Definition at line 59 of file logic_event.h. Referenced by CLogicEventMessage(), and NLLOGIC::CLogicEvent::reset(). |
|
|
true if the message has to be sent
Definition at line 56 of file logic_event.h. Referenced by CLogicEventMessage(), NLLOGIC::CLogicEventAction::enableSendMessage(), and NLLOGIC::CLogicEvent::reset(). |
1.3.6