OverSim
ScribeMessage_m.h File Reference
#include <omnetpp.h>
#include <CommonMessages_m.h>
#include "ScribeGroup.h"

Go to the source code of this file.

Classes

class  ScribeJoinCall
 Class generated from applications/scribe/ScribeMessage.msg by opp_msgc. More...
class  ScribeJoinResponse
 Class generated from applications/scribe/ScribeMessage.msg by opp_msgc. More...
class  ScribePublishCall
 Class generated from applications/scribe/ScribeMessage.msg by opp_msgc. More...
class  ScribePublishResponse
 Class generated from applications/scribe/ScribeMessage.msg by opp_msgc. More...
class  ScribeSubscriptionRefreshMessage
 Class generated from applications/scribe/ScribeMessage.msg by opp_msgc. More...
class  ScribeLeaveMessage
 Class generated from applications/scribe/ScribeMessage.msg by opp_msgc. More...
class  ScribeTimer
 Class generated from applications/scribe/ScribeMessage.msg by opp_msgc. More...
class  ScribeDataMessage
 Class generated from applications/scribe/ScribeMessage.msg by opp_msgc. More...

Macros

#define MSGC_VERSION   0x0402
#define SCRIBE_JOINCALL_L(msg)   (BASECALL_L(msg))
#define SCRIBE_JOINRESPONSE_L(msg)   (BASECALL_L(msg))
#define SCRIBE_PUBLISHCALL_L(msg)   (BASECALL_L(msg))
#define SCRIBE_PUBLISHRESPONSE_L(msg)   (BASECALL_L(msg) + SCRIBE_WRONGROOT_L)
#define SCRIBE_SUBSCRIPTIONREFRESH_L(msg)   (NODEHANDLE_L + KEY_L)
#define SCRIBE_LEAVE_L(msg)   (NODEHANDLE_L + KEY_L)
#define SCRIBE_DATA_L(msg)   (KEY_L + SCRIBE_EMPTYFLAG_L)

Enumerations

enum  ScribeTimerType { SCRIBE_HEARTBEAT = 0, SCRIBE_SUBSCRIPTION_REFRESH = 1, SCRIBE_PARENT_TIMEOUT = 2, SCRIBE_CHILD_TIMEOUT = 3 }
 Enum generated from applications/scribe/ScribeMessage.msg by opp_msgc. More...

Functions

void doPacking (cCommBuffer *b, ScribeJoinCall &obj)
void doUnpacking (cCommBuffer *b, ScribeJoinCall &obj)
void doPacking (cCommBuffer *b, ScribeJoinResponse &obj)
void doUnpacking (cCommBuffer *b, ScribeJoinResponse &obj)
void doPacking (cCommBuffer *b, ScribePublishCall &obj)
void doUnpacking (cCommBuffer *b, ScribePublishCall &obj)
void doPacking (cCommBuffer *b, ScribePublishResponse &obj)
void doUnpacking (cCommBuffer *b, ScribePublishResponse &obj)
void doPacking (cCommBuffer *b, ScribeSubscriptionRefreshMessage &obj)
void doUnpacking (cCommBuffer *b, ScribeSubscriptionRefreshMessage &obj)
void doPacking (cCommBuffer *b, ScribeLeaveMessage &obj)
void doUnpacking (cCommBuffer *b, ScribeLeaveMessage &obj)
void doPacking (cCommBuffer *b, ScribeTimer &obj)
void doUnpacking (cCommBuffer *b, ScribeTimer &obj)
void doPacking (cCommBuffer *b, ScribeDataMessage &obj)
void doUnpacking (cCommBuffer *b, ScribeDataMessage &obj)

Variables

static const int SCRIBE_WRONGROOT_L = 8
static const int SCRIBE_EMPTYFLAG_L = 8

Macro Definition Documentation

#define MSGC_VERSION   0x0402

Definition at line 11 of file ScribeMessage_m.h.

#define SCRIBE_DATA_L (   msg)    (KEY_L + SCRIBE_EMPTYFLAG_L)

Definition at line 35 of file ScribeMessage_m.h.

Referenced by Scribe::deliverALMDataToRoot(), and Scribe::handleTimerEvent().

#define SCRIBE_JOINCALL_L (   msg)    (BASECALL_L(msg))
#define SCRIBE_JOINRESPONSE_L (   msg)    (BASECALL_L(msg))

Definition at line 29 of file ScribeMessage_m.h.

Referenced by Scribe::handleJoinMessage().

#define SCRIBE_LEAVE_L (   msg)    (NODEHANDLE_L + KEY_L)

Definition at line 34 of file ScribeMessage_m.h.

Referenced by Scribe::checkGroupEmpty().

#define SCRIBE_PUBLISHCALL_L (   msg)    (BASECALL_L(msg))

Definition at line 30 of file ScribeMessage_m.h.

Referenced by Scribe::deliverALMDataToRoot().

#define SCRIBE_PUBLISHRESPONSE_L (   msg)    (BASECALL_L(msg) + SCRIBE_WRONGROOT_L)

Definition at line 31 of file ScribeMessage_m.h.

Referenced by Scribe::handlePublishCall().

#define SCRIBE_SUBSCRIPTIONREFRESH_L (   msg)    (NODEHANDLE_L + KEY_L)

Definition at line 33 of file ScribeMessage_m.h.

Referenced by Scribe::handleTimerEvent().

Enumeration Type Documentation

Enum generated from applications/scribe/ScribeMessage.msg by opp_msgc.

enum ScribeTimerType 
{

SCRIBE_HEARTBEAT = 0; 
SCRIBE_SUBSCRIPTION_REFRESH = 1; 
SCRIBE_PARENT_TIMEOUT = 2; 
SCRIBE_CHILD_TIMEOUT = 3; 

}

Enumerator:
SCRIBE_HEARTBEAT 
SCRIBE_SUBSCRIPTION_REFRESH 
SCRIBE_PARENT_TIMEOUT 
SCRIBE_CHILD_TIMEOUT 

Definition at line 53 of file ScribeMessage_m.h.

Function Documentation

void doPacking ( cCommBuffer *  b,
ScribeJoinCall obj 
)
inline

Definition at line 97 of file ScribeMessage_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
ScribeJoinResponse obj 
)
inline

Definition at line 137 of file ScribeMessage_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
ScribePublishCall obj 
)
inline

Definition at line 177 of file ScribeMessage_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
ScribePublishResponse obj 
)
inline

Definition at line 221 of file ScribeMessage_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
ScribeSubscriptionRefreshMessage obj 
)
inline

Definition at line 265 of file ScribeMessage_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
ScribeLeaveMessage obj 
)
inline

Definition at line 309 of file ScribeMessage_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
ScribeTimer obj 
)
inline

Definition at line 357 of file ScribeMessage_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
ScribeDataMessage obj 
)
inline

Definition at line 400 of file ScribeMessage_m.h.

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

Definition at line 98 of file ScribeMessage_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
ScribeJoinResponse obj 
)
inline

Definition at line 138 of file ScribeMessage_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
ScribePublishCall obj 
)
inline

Definition at line 178 of file ScribeMessage_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
ScribePublishResponse obj 
)
inline

Definition at line 222 of file ScribeMessage_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
ScribeSubscriptionRefreshMessage obj 
)
inline

Definition at line 266 of file ScribeMessage_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
ScribeLeaveMessage obj 
)
inline

Definition at line 310 of file ScribeMessage_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
ScribeTimer obj 
)
inline

Definition at line 358 of file ScribeMessage_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
ScribeDataMessage obj 
)
inline

Definition at line 401 of file ScribeMessage_m.h.

{obj.parsimUnpack(b);}

Variable Documentation

const int SCRIBE_EMPTYFLAG_L = 8
static

Definition at line 25 of file ScribeMessage_m.h.

const int SCRIBE_WRONGROOT_L = 8
static

Definition at line 24 of file ScribeMessage_m.h.