ScribeMessage_m.h

Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.1 from applications/scribe/ScribeMessage.msg.
00003 //
00004 
00005 #ifndef _SCRIBEMESSAGE_M_H_
00006 #define _SCRIBEMESSAGE_M_H_
00007 
00008 #include <omnetpp.h>
00009 
00010 // opp_msgc version check
00011 #define MSGC_VERSION 0x0401
00012 #if (MSGC_VERSION!=OMNETPP_VERSION)
00013 #    error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help.
00014 #endif
00015 
00016 // cplusplus {{
00017 #include <CommonMessages_m.h>
00018 
00019 class ScribeTimer;
00020 
00021 #include "ScribeGroup.h"
00022 
00023 
00024 static const int SCRIBE_WRONGROOT_L = 8;
00025 static const int SCRIBE_EMPTYFLAG_L = 8;
00026 
00027 
00028 #define SCRIBE_JOINCALL_L(msg) (BASECALL_L(msg))
00029 #define SCRIBE_JOINRESPONSE_L(msg) (BASECALL_L(msg))
00030 #define SCRIBE_PUBLISHCALL_L(msg) (BASECALL_L(msg))
00031 #define SCRIBE_PUBLISHRESPONSE_L(msg) (BASECALL_L(msg) + SCRIBE_WRONGROOT_L)
00032 
00033 #define SCRIBE_SUBSCRIPTIONREFRESH_L(msg) (NODEHANDLE_L + KEY_L)
00034 #define SCRIBE_LEAVE_L(msg) (NODEHANDLE_L + KEY_L)
00035 #define SCRIBE_DATA_L(msg) (KEY_L + SCRIBE_EMPTYFLAG_L)
00036 // }}
00037 
00038 
00039 
00053 enum ScribeTimerType {
00054     SCRIBE_HEARTBEAT = 0,
00055     SCRIBE_SUBSCRIPTION_REFRESH = 1,
00056     SCRIBE_PARENT_TIMEOUT = 2,
00057     SCRIBE_CHILD_TIMEOUT = 3
00058 };
00059 
00070 class ScribeJoinCall : public ::BaseCallMessage
00071 {
00072   protected:
00073     ::OverlayKey groupId_var;
00074 
00075     // protected and unimplemented operator==(), to prevent accidental usage
00076     bool operator==(const ScribeJoinCall&);
00077 
00078   public:
00079     ScribeJoinCall(const char *name=NULL, int kind=0);
00080     ScribeJoinCall(const ScribeJoinCall& other);
00081     virtual ~ScribeJoinCall();
00082     ScribeJoinCall& operator=(const ScribeJoinCall& other);
00083     virtual ScribeJoinCall *dup() const {return new ScribeJoinCall(*this);}
00084     virtual void parsimPack(cCommBuffer *b);
00085     virtual void parsimUnpack(cCommBuffer *b);
00086 
00087     // field getter/setter methods
00088     virtual OverlayKey& getGroupId();
00089     virtual const OverlayKey& getGroupId() const {return const_cast<ScribeJoinCall*>(this)->getGroupId();}
00090     virtual void setGroupId(const OverlayKey& groupId_var);
00091 };
00092 
00093 inline void doPacking(cCommBuffer *b, ScribeJoinCall& obj) {obj.parsimPack(b);}
00094 inline void doUnpacking(cCommBuffer *b, ScribeJoinCall& obj) {obj.parsimUnpack(b);}
00095 
00106 class ScribeJoinResponse : public ::BaseResponseMessage
00107 {
00108   protected:
00109     ::OverlayKey groupId_var;
00110 
00111     // protected and unimplemented operator==(), to prevent accidental usage
00112     bool operator==(const ScribeJoinResponse&);
00113 
00114   public:
00115     ScribeJoinResponse(const char *name=NULL, int kind=0);
00116     ScribeJoinResponse(const ScribeJoinResponse& other);
00117     virtual ~ScribeJoinResponse();
00118     ScribeJoinResponse& operator=(const ScribeJoinResponse& other);
00119     virtual ScribeJoinResponse *dup() const {return new ScribeJoinResponse(*this);}
00120     virtual void parsimPack(cCommBuffer *b);
00121     virtual void parsimUnpack(cCommBuffer *b);
00122 
00123     // field getter/setter methods
00124     virtual OverlayKey& getGroupId();
00125     virtual const OverlayKey& getGroupId() const {return const_cast<ScribeJoinResponse*>(this)->getGroupId();}
00126     virtual void setGroupId(const OverlayKey& groupId_var);
00127 };
00128 
00129 inline void doPacking(cCommBuffer *b, ScribeJoinResponse& obj) {obj.parsimPack(b);}
00130 inline void doUnpacking(cCommBuffer *b, ScribeJoinResponse& obj) {obj.parsimUnpack(b);}
00131 
00142 class ScribePublishCall : public ::BaseCallMessage
00143 {
00144   protected:
00145     ::OverlayKey groupId_var;
00146 
00147     // protected and unimplemented operator==(), to prevent accidental usage
00148     bool operator==(const ScribePublishCall&);
00149 
00150   public:
00151     ScribePublishCall(const char *name=NULL, int kind=0);
00152     ScribePublishCall(const ScribePublishCall& other);
00153     virtual ~ScribePublishCall();
00154     ScribePublishCall& operator=(const ScribePublishCall& other);
00155     virtual ScribePublishCall *dup() const {return new ScribePublishCall(*this);}
00156     virtual void parsimPack(cCommBuffer *b);
00157     virtual void parsimUnpack(cCommBuffer *b);
00158 
00159     // field getter/setter methods
00160     virtual OverlayKey& getGroupId();
00161     virtual const OverlayKey& getGroupId() const {return const_cast<ScribePublishCall*>(this)->getGroupId();}
00162     virtual void setGroupId(const OverlayKey& groupId_var);
00163 };
00164 
00165 inline void doPacking(cCommBuffer *b, ScribePublishCall& obj) {obj.parsimPack(b);}
00166 inline void doUnpacking(cCommBuffer *b, ScribePublishCall& obj) {obj.parsimUnpack(b);}
00167 
00179 class ScribePublishResponse : public ::BaseResponseMessage
00180 {
00181   protected:
00182     ::OverlayKey groupId_var;
00183     bool wrongRoot_var;
00184 
00185     // protected and unimplemented operator==(), to prevent accidental usage
00186     bool operator==(const ScribePublishResponse&);
00187 
00188   public:
00189     ScribePublishResponse(const char *name=NULL, int kind=0);
00190     ScribePublishResponse(const ScribePublishResponse& other);
00191     virtual ~ScribePublishResponse();
00192     ScribePublishResponse& operator=(const ScribePublishResponse& other);
00193     virtual ScribePublishResponse *dup() const {return new ScribePublishResponse(*this);}
00194     virtual void parsimPack(cCommBuffer *b);
00195     virtual void parsimUnpack(cCommBuffer *b);
00196 
00197     // field getter/setter methods
00198     virtual OverlayKey& getGroupId();
00199     virtual const OverlayKey& getGroupId() const {return const_cast<ScribePublishResponse*>(this)->getGroupId();}
00200     virtual void setGroupId(const OverlayKey& groupId_var);
00201     virtual bool getWrongRoot() const;
00202     virtual void setWrongRoot(bool wrongRoot_var);
00203 };
00204 
00205 inline void doPacking(cCommBuffer *b, ScribePublishResponse& obj) {obj.parsimPack(b);}
00206 inline void doUnpacking(cCommBuffer *b, ScribePublishResponse& obj) {obj.parsimUnpack(b);}
00207 
00218 class ScribeSubscriptionRefreshMessage : public ::cPacket
00219 {
00220   protected:
00221     ::NodeHandle src_var;
00222     ::OverlayKey groupId_var;
00223 
00224     // protected and unimplemented operator==(), to prevent accidental usage
00225     bool operator==(const ScribeSubscriptionRefreshMessage&);
00226 
00227   public:
00228     ScribeSubscriptionRefreshMessage(const char *name=NULL, int kind=0);
00229     ScribeSubscriptionRefreshMessage(const ScribeSubscriptionRefreshMessage& other);
00230     virtual ~ScribeSubscriptionRefreshMessage();
00231     ScribeSubscriptionRefreshMessage& operator=(const ScribeSubscriptionRefreshMessage& other);
00232     virtual ScribeSubscriptionRefreshMessage *dup() const {return new ScribeSubscriptionRefreshMessage(*this);}
00233     virtual void parsimPack(cCommBuffer *b);
00234     virtual void parsimUnpack(cCommBuffer *b);
00235 
00236     // field getter/setter methods
00237     virtual NodeHandle& getSrc();
00238     virtual const NodeHandle& getSrc() const {return const_cast<ScribeSubscriptionRefreshMessage*>(this)->getSrc();}
00239     virtual void setSrc(const NodeHandle& src_var);
00240     virtual OverlayKey& getGroupId();
00241     virtual const OverlayKey& getGroupId() const {return const_cast<ScribeSubscriptionRefreshMessage*>(this)->getGroupId();}
00242     virtual void setGroupId(const OverlayKey& groupId_var);
00243 };
00244 
00245 inline void doPacking(cCommBuffer *b, ScribeSubscriptionRefreshMessage& obj) {obj.parsimPack(b);}
00246 inline void doUnpacking(cCommBuffer *b, ScribeSubscriptionRefreshMessage& obj) {obj.parsimUnpack(b);}
00247 
00258 class ScribeLeaveMessage : public ::cPacket
00259 {
00260   protected:
00261     ::NodeHandle src_var;
00262     ::OverlayKey groupId_var;
00263 
00264     // protected and unimplemented operator==(), to prevent accidental usage
00265     bool operator==(const ScribeLeaveMessage&);
00266 
00267   public:
00268     ScribeLeaveMessage(const char *name=NULL, int kind=0);
00269     ScribeLeaveMessage(const ScribeLeaveMessage& other);
00270     virtual ~ScribeLeaveMessage();
00271     ScribeLeaveMessage& operator=(const ScribeLeaveMessage& other);
00272     virtual ScribeLeaveMessage *dup() const {return new ScribeLeaveMessage(*this);}
00273     virtual void parsimPack(cCommBuffer *b);
00274     virtual void parsimUnpack(cCommBuffer *b);
00275 
00276     // field getter/setter methods
00277     virtual NodeHandle& getSrc();
00278     virtual const NodeHandle& getSrc() const {return const_cast<ScribeLeaveMessage*>(this)->getSrc();}
00279     virtual void setSrc(const NodeHandle& src_var);
00280     virtual OverlayKey& getGroupId();
00281     virtual const OverlayKey& getGroupId() const {return const_cast<ScribeLeaveMessage*>(this)->getGroupId();}
00282     virtual void setGroupId(const OverlayKey& groupId_var);
00283 };
00284 
00285 inline void doPacking(cCommBuffer *b, ScribeLeaveMessage& obj) {obj.parsimPack(b);}
00286 inline void doUnpacking(cCommBuffer *b, ScribeLeaveMessage& obj) {obj.parsimUnpack(b);}
00287 
00299 class ScribeTimer : public ::cMessage
00300 {
00301   protected:
00302     int timerType_var;
00303     ::NodeHandle child_var;
00304     ::OverlayKey group_var;
00305 
00306     // protected and unimplemented operator==(), to prevent accidental usage
00307     bool operator==(const ScribeTimer&);
00308 
00309   public:
00310     ScribeTimer(const char *name=NULL, int kind=0);
00311     ScribeTimer(const ScribeTimer& other);
00312     virtual ~ScribeTimer();
00313     ScribeTimer& operator=(const ScribeTimer& other);
00314     virtual ScribeTimer *dup() const {return new ScribeTimer(*this);}
00315     virtual void parsimPack(cCommBuffer *b);
00316     virtual void parsimUnpack(cCommBuffer *b);
00317 
00318     // field getter/setter methods
00319     virtual int getTimerType() const;
00320     virtual void setTimerType(int timerType_var);
00321     virtual NodeHandle& getChild();
00322     virtual const NodeHandle& getChild() const {return const_cast<ScribeTimer*>(this)->getChild();}
00323     virtual void setChild(const NodeHandle& child_var);
00324     virtual OverlayKey& getGroup();
00325     virtual const OverlayKey& getGroup() const {return const_cast<ScribeTimer*>(this)->getGroup();}
00326     virtual void setGroup(const OverlayKey& group_var);
00327 };
00328 
00329 inline void doPacking(cCommBuffer *b, ScribeTimer& obj) {obj.parsimPack(b);}
00330 inline void doUnpacking(cCommBuffer *b, ScribeTimer& obj) {obj.parsimUnpack(b);}
00331 
00342 class ScribeDataMessage : public ::cPacket
00343 {
00344   protected:
00345     ::OverlayKey groupId_var;
00346     bool empty_var;
00347 
00348     // protected and unimplemented operator==(), to prevent accidental usage
00349     bool operator==(const ScribeDataMessage&);
00350 
00351   public:
00352     ScribeDataMessage(const char *name=NULL, int kind=0);
00353     ScribeDataMessage(const ScribeDataMessage& other);
00354     virtual ~ScribeDataMessage();
00355     ScribeDataMessage& operator=(const ScribeDataMessage& other);
00356     virtual ScribeDataMessage *dup() const {return new ScribeDataMessage(*this);}
00357     virtual void parsimPack(cCommBuffer *b);
00358     virtual void parsimUnpack(cCommBuffer *b);
00359 
00360     // field getter/setter methods
00361     virtual OverlayKey& getGroupId();
00362     virtual const OverlayKey& getGroupId() const {return const_cast<ScribeDataMessage*>(this)->getGroupId();}
00363     virtual void setGroupId(const OverlayKey& groupId_var);
00364     virtual bool getEmpty() const;
00365     virtual void setEmpty(bool empty_var);
00366 };
00367 
00368 inline void doPacking(cCommBuffer *b, ScribeDataMessage& obj) {obj.parsimPack(b);}
00369 inline void doUnpacking(cCommBuffer *b, ScribeDataMessage& obj) {obj.parsimUnpack(b);}
00370 
00371 
00372 #endif // _SCRIBEMESSAGE_M_H_