OverSim
I3Message_m.h File Reference
#include <omnetpp.h>
#include "I3Trigger.h"
#include "I3IdentifierStack.h"
#include "I3Identifier.h"
#include "I3IPAddress.h"

Go to the source code of this file.

Classes

class  I3Message
 Class generated from applications/i3/I3Message.msg by opp_msgc. More...
class  I3InsertTriggerMessage_Base
 Class generated from applications/i3/I3Message.msg by opp_msgc. More...
class  I3QueryReplyMessage_Base
 Class generated from applications/i3/I3Message.msg by opp_msgc. More...
class  I3RemoveTriggerMessage_Base
 Class generated from applications/i3/I3Message.msg by opp_msgc. More...
class  I3SendPacketMessage_Base
 Class generated from applications/i3/I3Message.msg by opp_msgc. More...

Macros

#define MSGC_VERSION   0x0402
#define I3TYPE_L   2
#define I3BOOL_L   1
#define I3TIME_L   32
#define INSERT_TRIGGER_L(msg)   (I3TYPE_L + I3BOOL_L + msg->getTrigger().length() + msg->getSource().length())
#define QUERY_REPLY_L(msg)   (I3TYPE_L + msg->getSource().length() + msg->getIdentifier().length() + I3TIME_L)
#define REMOVE_TRIGGER_L(msg)   (I3TYPE_L + msg->getTrigger().length())
#define SEND_PACKET_L(msg)   (I3TYPE_L + msg->getIdentifierStack().length() + msg->getMatchedTrigger().length())

Enumerations

enum  I3MessageType { INSERT_TRIGGER = 0, QUERY_REPLY = 1, REMOVE_TRIGGER = 2, SEND_PACKET = 3 }
 Enum generated from applications/i3/I3Message.msg by opp_msgc. More...

Functions

void doPacking (cCommBuffer *b, I3Message &obj)
void doUnpacking (cCommBuffer *b, I3Message &obj)

Macro Definition Documentation

#define I3BOOL_L   1

Definition at line 23 of file I3Message_m.h.

#define I3TIME_L   32

Definition at line 24 of file I3Message_m.h.

#define I3TYPE_L   2

Definition at line 22 of file I3Message_m.h.

#define INSERT_TRIGGER_L (   msg)    (I3TYPE_L + I3BOOL_L + msg->getTrigger().length() + msg->getSource().length())

Definition at line 25 of file I3Message_m.h.

Referenced by I3TRTClient::handleTimerEvent(), and I3BaseApp::insertTrigger().

#define MSGC_VERSION   0x0402

Definition at line 11 of file I3Message_m.h.

#define QUERY_REPLY_L (   msg)    (I3TYPE_L + msg->getSource().length() + msg->getIdentifier().length() + I3TIME_L)

Definition at line 26 of file I3Message_m.h.

Referenced by I3::sendQueryReply().

#define REMOVE_TRIGGER_L (   msg)    (I3TYPE_L + msg->getTrigger().length())

Definition at line 27 of file I3Message_m.h.

Referenced by I3BaseApp::removeTrigger().

#define SEND_PACKET_L (   msg)    (I3TYPE_L + msg->getIdentifierStack().length() + msg->getMatchedTrigger().length())

Definition at line 28 of file I3Message_m.h.

Referenced by I3::sendPacket(), and I3BaseApp::sendPacket().

Enumeration Type Documentation

Enum generated from applications/i3/I3Message.msg by opp_msgc.

enum I3MessageType
{

    INSERT_TRIGGER = 0;
    QUERY_REPLY = 1;        
    REMOVE_TRIGGER = 2;
    SEND_PACKET = 3;

}

Enumerator:
INSERT_TRIGGER 
QUERY_REPLY 
REMOVE_TRIGGER 
SEND_PACKET 

Definition at line 46 of file I3Message_m.h.

Function Documentation

void doPacking ( cCommBuffer *  b,
I3Message obj 
)
inline

Definition at line 88 of file I3Message_m.h.

{obj.parsimPack(b);}
void doUnpacking ( cCommBuffer *  b,
I3Message obj 
)
inline

Definition at line 89 of file I3Message_m.h.

{obj.parsimUnpack(b);}