OverSim
ScribeMessage_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from applications/scribe/ScribeMessage.msg.
3 //
4 
5 #ifndef _SCRIBEMESSAGE_M_H_
6 #define _SCRIBEMESSAGE_M_H_
7 
8 #include <omnetpp.h>
9 
10 // opp_msgc version check
11 #define MSGC_VERSION 0x0402
12 #if (MSGC_VERSION!=OMNETPP_VERSION)
13 # error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help.
14 #endif
15 
16 // cplusplus {{
17 #include <CommonMessages_m.h>
18 
19 class ScribeTimer;
20 
21 #include "ScribeGroup.h"
22 
23 
24 static const int SCRIBE_WRONGROOT_L = 8;
25 static const int SCRIBE_EMPTYFLAG_L = 8;
26 
27 
28 #define SCRIBE_JOINCALL_L(msg) (BASECALL_L(msg))
29 #define SCRIBE_JOINRESPONSE_L(msg) (BASECALL_L(msg))
30 #define SCRIBE_PUBLISHCALL_L(msg) (BASECALL_L(msg))
31 #define SCRIBE_PUBLISHRESPONSE_L(msg) (BASECALL_L(msg) + SCRIBE_WRONGROOT_L)
32 
33 #define SCRIBE_SUBSCRIPTIONREFRESH_L(msg) (NODEHANDLE_L + KEY_L)
34 #define SCRIBE_LEAVE_L(msg) (NODEHANDLE_L + KEY_L)
35 #define SCRIBE_DATA_L(msg) (KEY_L + SCRIBE_EMPTYFLAG_L)
36 // }}
37 
38 
39 
58 };
59 
71 {
72  protected:
74 
75  private:
76  void copy(const ScribeJoinCall& other);
77 
78  protected:
79  // protected and unimplemented operator==(), to prevent accidental usage
80  bool operator==(const ScribeJoinCall&);
81 
82  public:
83  ScribeJoinCall(const char *name=NULL, int kind=0);
84  ScribeJoinCall(const ScribeJoinCall& other);
85  virtual ~ScribeJoinCall();
87  virtual ScribeJoinCall *dup() const {return new ScribeJoinCall(*this);}
88  virtual void parsimPack(cCommBuffer *b);
89  virtual void parsimUnpack(cCommBuffer *b);
90 
91  // field getter/setter methods
92  virtual OverlayKey& getGroupId();
93  virtual const OverlayKey& getGroupId() const {return const_cast<ScribeJoinCall*>(this)->getGroupId();}
94  virtual void setGroupId(const OverlayKey& groupId);
95 };
96 
97 inline void doPacking(cCommBuffer *b, ScribeJoinCall& obj) {obj.parsimPack(b);}
98 inline void doUnpacking(cCommBuffer *b, ScribeJoinCall& obj) {obj.parsimUnpack(b);}
99 
111 {
112  protected:
114 
115  private:
116  void copy(const ScribeJoinResponse& other);
117 
118  protected:
119  // protected and unimplemented operator==(), to prevent accidental usage
120  bool operator==(const ScribeJoinResponse&);
121 
122  public:
123  ScribeJoinResponse(const char *name=NULL, int kind=0);
125  virtual ~ScribeJoinResponse();
127  virtual ScribeJoinResponse *dup() const {return new ScribeJoinResponse(*this);}
128  virtual void parsimPack(cCommBuffer *b);
129  virtual void parsimUnpack(cCommBuffer *b);
130 
131  // field getter/setter methods
132  virtual OverlayKey& getGroupId();
133  virtual const OverlayKey& getGroupId() const {return const_cast<ScribeJoinResponse*>(this)->getGroupId();}
134  virtual void setGroupId(const OverlayKey& groupId);
135 };
136 
137 inline void doPacking(cCommBuffer *b, ScribeJoinResponse& obj) {obj.parsimPack(b);}
138 inline void doUnpacking(cCommBuffer *b, ScribeJoinResponse& obj) {obj.parsimUnpack(b);}
139 
151 {
152  protected:
154 
155  private:
156  void copy(const ScribePublishCall& other);
157 
158  protected:
159  // protected and unimplemented operator==(), to prevent accidental usage
160  bool operator==(const ScribePublishCall&);
161 
162  public:
163  ScribePublishCall(const char *name=NULL, int kind=0);
164  ScribePublishCall(const ScribePublishCall& other);
165  virtual ~ScribePublishCall();
167  virtual ScribePublishCall *dup() const {return new ScribePublishCall(*this);}
168  virtual void parsimPack(cCommBuffer *b);
169  virtual void parsimUnpack(cCommBuffer *b);
170 
171  // field getter/setter methods
172  virtual OverlayKey& getGroupId();
173  virtual const OverlayKey& getGroupId() const {return const_cast<ScribePublishCall*>(this)->getGroupId();}
174  virtual void setGroupId(const OverlayKey& groupId);
175 };
176 
177 inline void doPacking(cCommBuffer *b, ScribePublishCall& obj) {obj.parsimPack(b);}
178 inline void doUnpacking(cCommBuffer *b, ScribePublishCall& obj) {obj.parsimUnpack(b);}
179 
192 {
193  protected:
196 
197  private:
198  void copy(const ScribePublishResponse& other);
199 
200  protected:
201  // protected and unimplemented operator==(), to prevent accidental usage
202  bool operator==(const ScribePublishResponse&);
203 
204  public:
205  ScribePublishResponse(const char *name=NULL, int kind=0);
207  virtual ~ScribePublishResponse();
209  virtual ScribePublishResponse *dup() const {return new ScribePublishResponse(*this);}
210  virtual void parsimPack(cCommBuffer *b);
211  virtual void parsimUnpack(cCommBuffer *b);
212 
213  // field getter/setter methods
214  virtual OverlayKey& getGroupId();
215  virtual const OverlayKey& getGroupId() const {return const_cast<ScribePublishResponse*>(this)->getGroupId();}
216  virtual void setGroupId(const OverlayKey& groupId);
217  virtual bool getWrongRoot() const;
218  virtual void setWrongRoot(bool wrongRoot);
219 };
220 
221 inline void doPacking(cCommBuffer *b, ScribePublishResponse& obj) {obj.parsimPack(b);}
222 inline void doUnpacking(cCommBuffer *b, ScribePublishResponse& obj) {obj.parsimUnpack(b);}
223 
234 class ScribeSubscriptionRefreshMessage : public ::cPacket
235 {
236  protected:
239 
240  private:
241  void copy(const ScribeSubscriptionRefreshMessage& other);
242 
243  protected:
244  // protected and unimplemented operator==(), to prevent accidental usage
246 
247  public:
248  ScribeSubscriptionRefreshMessage(const char *name=NULL, int kind=0);
253  virtual void parsimPack(cCommBuffer *b);
254  virtual void parsimUnpack(cCommBuffer *b);
255 
256  // field getter/setter methods
257  virtual NodeHandle& getSrc();
258  virtual const NodeHandle& getSrc() const {return const_cast<ScribeSubscriptionRefreshMessage*>(this)->getSrc();}
259  virtual void setSrc(const NodeHandle& src);
260  virtual OverlayKey& getGroupId();
261  virtual const OverlayKey& getGroupId() const {return const_cast<ScribeSubscriptionRefreshMessage*>(this)->getGroupId();}
262  virtual void setGroupId(const OverlayKey& groupId);
263 };
264 
265 inline void doPacking(cCommBuffer *b, ScribeSubscriptionRefreshMessage& obj) {obj.parsimPack(b);}
266 inline void doUnpacking(cCommBuffer *b, ScribeSubscriptionRefreshMessage& obj) {obj.parsimUnpack(b);}
267 
278 class ScribeLeaveMessage : public ::cPacket
279 {
280  protected:
283 
284  private:
285  void copy(const ScribeLeaveMessage& other);
286 
287  protected:
288  // protected and unimplemented operator==(), to prevent accidental usage
289  bool operator==(const ScribeLeaveMessage&);
290 
291  public:
292  ScribeLeaveMessage(const char *name=NULL, int kind=0);
294  virtual ~ScribeLeaveMessage();
296  virtual ScribeLeaveMessage *dup() const {return new ScribeLeaveMessage(*this);}
297  virtual void parsimPack(cCommBuffer *b);
298  virtual void parsimUnpack(cCommBuffer *b);
299 
300  // field getter/setter methods
301  virtual NodeHandle& getSrc();
302  virtual const NodeHandle& getSrc() const {return const_cast<ScribeLeaveMessage*>(this)->getSrc();}
303  virtual void setSrc(const NodeHandle& src);
304  virtual OverlayKey& getGroupId();
305  virtual const OverlayKey& getGroupId() const {return const_cast<ScribeLeaveMessage*>(this)->getGroupId();}
306  virtual void setGroupId(const OverlayKey& groupId);
307 };
308 
309 inline void doPacking(cCommBuffer *b, ScribeLeaveMessage& obj) {obj.parsimPack(b);}
310 inline void doUnpacking(cCommBuffer *b, ScribeLeaveMessage& obj) {obj.parsimUnpack(b);}
311 
323 class ScribeTimer : public ::cMessage
324 {
325  protected:
329 
330  private:
331  void copy(const ScribeTimer& other);
332 
333  protected:
334  // protected and unimplemented operator==(), to prevent accidental usage
335  bool operator==(const ScribeTimer&);
336 
337  public:
338  ScribeTimer(const char *name=NULL, int kind=0);
339  ScribeTimer(const ScribeTimer& other);
340  virtual ~ScribeTimer();
341  ScribeTimer& operator=(const ScribeTimer& other);
342  virtual ScribeTimer *dup() const {return new ScribeTimer(*this);}
343  virtual void parsimPack(cCommBuffer *b);
344  virtual void parsimUnpack(cCommBuffer *b);
345 
346  // field getter/setter methods
347  virtual int getTimerType() const;
348  virtual void setTimerType(int timerType);
349  virtual NodeHandle& getChild();
350  virtual const NodeHandle& getChild() const {return const_cast<ScribeTimer*>(this)->getChild();}
351  virtual void setChild(const NodeHandle& child);
352  virtual OverlayKey& getGroup();
353  virtual const OverlayKey& getGroup() const {return const_cast<ScribeTimer*>(this)->getGroup();}
354  virtual void setGroup(const OverlayKey& group);
355 };
356 
357 inline void doPacking(cCommBuffer *b, ScribeTimer& obj) {obj.parsimPack(b);}
358 inline void doUnpacking(cCommBuffer *b, ScribeTimer& obj) {obj.parsimUnpack(b);}
359 
370 class ScribeDataMessage : public ::cPacket
371 {
372  protected:
374  bool empty_var;
375 
376  private:
377  void copy(const ScribeDataMessage& other);
378 
379  protected:
380  // protected and unimplemented operator==(), to prevent accidental usage
381  bool operator==(const ScribeDataMessage&);
382 
383  public:
384  ScribeDataMessage(const char *name=NULL, int kind=0);
385  ScribeDataMessage(const ScribeDataMessage& other);
386  virtual ~ScribeDataMessage();
388  virtual ScribeDataMessage *dup() const {return new ScribeDataMessage(*this);}
389  virtual void parsimPack(cCommBuffer *b);
390  virtual void parsimUnpack(cCommBuffer *b);
391 
392  // field getter/setter methods
393  virtual OverlayKey& getGroupId();
394  virtual const OverlayKey& getGroupId() const {return const_cast<ScribeDataMessage*>(this)->getGroupId();}
395  virtual void setGroupId(const OverlayKey& groupId);
396  virtual bool getEmpty() const;
397  virtual void setEmpty(bool empty);
398 };
399 
400 inline void doPacking(cCommBuffer *b, ScribeDataMessage& obj) {obj.parsimPack(b);}
401 inline void doUnpacking(cCommBuffer *b, ScribeDataMessage& obj) {obj.parsimUnpack(b);}
402 
403 
404 #endif // _SCRIBEMESSAGE_M_H_