ScribeMessage_m.h

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

Generated on Tue Sep 8 17:26:54 2009 for OverSim by  doxygen 1.5.8