OverSim
ChordMessage_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from overlay/chord/ChordMessage.msg.
3 //
4 
5 #ifndef _CHORDMESSAGE_M_H_
6 #define _CHORDMESSAGE_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 <IPvXAddress.h>
18 #include <NodeHandle.h>
19 #include <TransportAddress.h>
20 #include <CommonMessages_m.h>
21 
22 
23 static const int CHORDCOMMAND_L = 8;
24 static const int SUCNUM_L = 8;
25 static const int FINGER_L = 8;
26 static const int STEP_L = 8;
27 static const int PRENODESET_L = 1;
28 
29 #define NEWSUCCESSORHINT_L(msg) (BASEOVERLAY_L(msg) + CHORDCOMMAND_L + \
30  2*NODEHANDLE_L)
31 #define NOTIFYCALL_L(msg) (BASECALL_L(msg))
32 #define NOTIFYRESPONSE_L(msg) (BASERESPONSE_L(msg) + SUCNUM_L + NODEHANDLE_L +\
33  (msg->getSucNodeArraySize() * NODEHANDLE_L) +\
34  PRENODESET_L)
35 #define JOINCALL_L(msg) BASECALL_L(msg)
36 #define JOINRESPONSE_L(msg) (BASERESPONSE_L(msg) + SUCNUM_L + NODEHANDLE_L +\
37  (msg->getSucNodeArraySize() * NODEHANDLE_L))
38 #define STABILIZECALL_L(msg) BASECALL_L(msg)
39 #define STABILIZERESPONSE_L(msg) (BASERESPONSE_L(msg) + NODEHANDLE_L)
40 #define FIXFINGERSCALL_L(msg) (BASECALL_L(msg) + FINGER_L)
41 #define FIXFINGERSRESPONSE_L(msg) (BASERESPONSE_L(msg) + FINGER_L + \
42  NODEHANDLE_L + SUCNUM_L + \
43  (msg->getSucNodeArraySize() * NODEHANDLE_L))
44 #define DEBRUIJNCALL_L(msg) (BASECALL_L(msg) + KEY_L)
45 #define DEBRUIJNRESPONSE_L(msg) (BASERESPONSE_L(msg) + SUCNUM_L + NODEHANDLE_L + \
46  (msg->getSucNodeArraySize() * NODEHANDLE_L))
47 
48 #define KOORDEFINDNODEEXTMESSAGE_L (KEY_L + STEP_L)
49 // }}
50 
51 
52 
65 };
66 
77 {
78  protected:
80 
81  private:
82  void copy(const ChordMessage& other);
83 
84  protected:
85  // protected and unimplemented operator==(), to prevent accidental usage
86  bool operator==(const ChordMessage&);
87 
88  public:
89  ChordMessage(const char *name=NULL, int kind=0);
90  ChordMessage(const ChordMessage& other);
91  virtual ~ChordMessage();
92  ChordMessage& operator=(const ChordMessage& other);
93  virtual ChordMessage *dup() const {return new ChordMessage(*this);}
94  virtual void parsimPack(cCommBuffer *b);
95  virtual void parsimUnpack(cCommBuffer *b);
96 
97  // field getter/setter methods
98  virtual int getCommand() const;
99  virtual void setCommand(int command);
100 };
101 
102 inline void doPacking(cCommBuffer *b, ChordMessage& obj) {obj.parsimPack(b);}
103 inline void doUnpacking(cCommBuffer *b, ChordMessage& obj) {obj.parsimUnpack(b);}
104 
116 {
117  protected:
120 
121  private:
122  void copy(const NewSuccessorHintMessage& other);
123 
124  protected:
125  // protected and unimplemented operator==(), to prevent accidental usage
126  bool operator==(const NewSuccessorHintMessage&);
127 
128  public:
129  NewSuccessorHintMessage(const char *name=NULL, int kind=0);
131  virtual ~NewSuccessorHintMessage();
133  virtual NewSuccessorHintMessage *dup() const {return new NewSuccessorHintMessage(*this);}
134  virtual void parsimPack(cCommBuffer *b);
135  virtual void parsimUnpack(cCommBuffer *b);
136 
137  // field getter/setter methods
138  virtual NodeHandle& getSrcNode();
139  virtual const NodeHandle& getSrcNode() const {return const_cast<NewSuccessorHintMessage*>(this)->getSrcNode();}
140  virtual void setSrcNode(const NodeHandle& srcNode);
141  virtual NodeHandle& getPreNode();
142  virtual const NodeHandle& getPreNode() const {return const_cast<NewSuccessorHintMessage*>(this)->getPreNode();}
143  virtual void setPreNode(const NodeHandle& preNode);
144 };
145 
146 inline void doPacking(cCommBuffer *b, NewSuccessorHintMessage& obj) {obj.parsimPack(b);}
147 inline void doUnpacking(cCommBuffer *b, NewSuccessorHintMessage& obj) {obj.parsimUnpack(b);}
148 
159 {
160  protected:
162 
163  private:
164  void copy(const NotifyCall& other);
165 
166  protected:
167  // protected and unimplemented operator==(), to prevent accidental usage
168  bool operator==(const NotifyCall&);
169 
170  public:
171  NotifyCall(const char *name=NULL, int kind=0);
172  NotifyCall(const NotifyCall& other);
173  virtual ~NotifyCall();
174  NotifyCall& operator=(const NotifyCall& other);
175  virtual NotifyCall *dup() const {return new NotifyCall(*this);}
176  virtual void parsimPack(cCommBuffer *b);
177  virtual void parsimUnpack(cCommBuffer *b);
178 
179  // field getter/setter methods
180  virtual TransportAddress& getFailed();
181  virtual const TransportAddress& getFailed() const {return const_cast<NotifyCall*>(this)->getFailed();}
182  virtual void setFailed(const TransportAddress& failed);
183 };
184 
185 inline void doPacking(cCommBuffer *b, NotifyCall& obj) {obj.parsimPack(b);}
186 inline void doUnpacking(cCommBuffer *b, NotifyCall& obj) {obj.parsimUnpack(b);}
187 
201 {
202  protected:
204  NodeHandle *sucNode_var; // array ptr
205  unsigned int sucNode_arraysize;
208 
209  private:
210  void copy(const NotifyResponse& other);
211 
212  protected:
213  // protected and unimplemented operator==(), to prevent accidental usage
214  bool operator==(const NotifyResponse&);
215 
216  public:
217  NotifyResponse(const char *name=NULL, int kind=0);
218  NotifyResponse(const NotifyResponse& other);
219  virtual ~NotifyResponse();
220  NotifyResponse& operator=(const NotifyResponse& other);
221  virtual NotifyResponse *dup() const {return new NotifyResponse(*this);}
222  virtual void parsimPack(cCommBuffer *b);
223  virtual void parsimUnpack(cCommBuffer *b);
224 
225  // field getter/setter methods
226  virtual int getSucNum() const;
227  virtual void setSucNum(int sucNum);
228  virtual void setSucNodeArraySize(unsigned int size);
229  virtual unsigned int getSucNodeArraySize() const;
230  virtual NodeHandle& getSucNode(unsigned int k);
231  virtual const NodeHandle& getSucNode(unsigned int k) const {return const_cast<NotifyResponse*>(this)->getSucNode(k);}
232  virtual void setSucNode(unsigned int k, const NodeHandle& sucNode);
233  virtual NodeHandle& getPreNode();
234  virtual const NodeHandle& getPreNode() const {return const_cast<NotifyResponse*>(this)->getPreNode();}
235  virtual void setPreNode(const NodeHandle& preNode);
236  virtual bool getPreNodeSet() const;
237  virtual void setPreNodeSet(bool preNodeSet);
238 };
239 
240 inline void doPacking(cCommBuffer *b, NotifyResponse& obj) {obj.parsimPack(b);}
241 inline void doUnpacking(cCommBuffer *b, NotifyResponse& obj) {obj.parsimUnpack(b);}
242 
252 {
253  protected:
254 
255  private:
256  void copy(const JoinCall& other);
257 
258  protected:
259  // protected and unimplemented operator==(), to prevent accidental usage
260  bool operator==(const JoinCall&);
261 
262  public:
263  JoinCall(const char *name=NULL, int kind=0);
264  JoinCall(const JoinCall& other);
265  virtual ~JoinCall();
266  JoinCall& operator=(const JoinCall& other);
267  virtual JoinCall *dup() const {return new JoinCall(*this);}
268  virtual void parsimPack(cCommBuffer *b);
269  virtual void parsimUnpack(cCommBuffer *b);
270 
271  // field getter/setter methods
272 };
273 
274 inline void doPacking(cCommBuffer *b, JoinCall& obj) {obj.parsimPack(b);}
275 inline void doUnpacking(cCommBuffer *b, JoinCall& obj) {obj.parsimUnpack(b);}
276 
289 {
290  protected:
292  NodeHandle *sucNode_var; // array ptr
293  unsigned int sucNode_arraysize;
295 
296  private:
297  void copy(const JoinResponse& other);
298 
299  protected:
300  // protected and unimplemented operator==(), to prevent accidental usage
301  bool operator==(const JoinResponse&);
302 
303  public:
304  JoinResponse(const char *name=NULL, int kind=0);
305  JoinResponse(const JoinResponse& other);
306  virtual ~JoinResponse();
307  JoinResponse& operator=(const JoinResponse& other);
308  virtual JoinResponse *dup() const {return new JoinResponse(*this);}
309  virtual void parsimPack(cCommBuffer *b);
310  virtual void parsimUnpack(cCommBuffer *b);
311 
312  // field getter/setter methods
313  virtual int getSucNum() const;
314  virtual void setSucNum(int sucNum);
315  virtual void setSucNodeArraySize(unsigned int size);
316  virtual unsigned int getSucNodeArraySize() const;
317  virtual NodeHandle& getSucNode(unsigned int k);
318  virtual const NodeHandle& getSucNode(unsigned int k) const {return const_cast<JoinResponse*>(this)->getSucNode(k);}
319  virtual void setSucNode(unsigned int k, const NodeHandle& sucNode);
320  virtual NodeHandle& getPreNode();
321  virtual const NodeHandle& getPreNode() const {return const_cast<JoinResponse*>(this)->getPreNode();}
322  virtual void setPreNode(const NodeHandle& preNode);
323 };
324 
325 inline void doPacking(cCommBuffer *b, JoinResponse& obj) {obj.parsimPack(b);}
326 inline void doUnpacking(cCommBuffer *b, JoinResponse& obj) {obj.parsimUnpack(b);}
327 
337 {
338  protected:
339 
340  private:
341  void copy(const StabilizeCall& other);
342 
343  protected:
344  // protected and unimplemented operator==(), to prevent accidental usage
345  bool operator==(const StabilizeCall&);
346 
347  public:
348  StabilizeCall(const char *name=NULL, int kind=0);
349  StabilizeCall(const StabilizeCall& other);
350  virtual ~StabilizeCall();
351  StabilizeCall& operator=(const StabilizeCall& other);
352  virtual StabilizeCall *dup() const {return new StabilizeCall(*this);}
353  virtual void parsimPack(cCommBuffer *b);
354  virtual void parsimUnpack(cCommBuffer *b);
355 
356  // field getter/setter methods
357 };
358 
359 inline void doPacking(cCommBuffer *b, StabilizeCall& obj) {obj.parsimPack(b);}
360 inline void doUnpacking(cCommBuffer *b, StabilizeCall& obj) {obj.parsimUnpack(b);}
361 
372 {
373  protected:
375 
376  private:
377  void copy(const StabilizeResponse& other);
378 
379  protected:
380  // protected and unimplemented operator==(), to prevent accidental usage
381  bool operator==(const StabilizeResponse&);
382 
383  public:
384  StabilizeResponse(const char *name=NULL, int kind=0);
385  StabilizeResponse(const StabilizeResponse& other);
386  virtual ~StabilizeResponse();
388  virtual StabilizeResponse *dup() const {return new StabilizeResponse(*this);}
389  virtual void parsimPack(cCommBuffer *b);
390  virtual void parsimUnpack(cCommBuffer *b);
391 
392  // field getter/setter methods
393  virtual NodeHandle& getPreNode();
394  virtual const NodeHandle& getPreNode() const {return const_cast<StabilizeResponse*>(this)->getPreNode();}
395  virtual void setPreNode(const NodeHandle& preNode);
396 };
397 
398 inline void doPacking(cCommBuffer *b, StabilizeResponse& obj) {obj.parsimPack(b);}
399 inline void doUnpacking(cCommBuffer *b, StabilizeResponse& obj) {obj.parsimUnpack(b);}
400 
411 {
412  protected:
414 
415  private:
416  void copy(const FixfingersCall& other);
417 
418  protected:
419  // protected and unimplemented operator==(), to prevent accidental usage
420  bool operator==(const FixfingersCall&);
421 
422  public:
423  FixfingersCall(const char *name=NULL, int kind=0);
424  FixfingersCall(const FixfingersCall& other);
425  virtual ~FixfingersCall();
426  FixfingersCall& operator=(const FixfingersCall& other);
427  virtual FixfingersCall *dup() const {return new FixfingersCall(*this);}
428  virtual void parsimPack(cCommBuffer *b);
429  virtual void parsimUnpack(cCommBuffer *b);
430 
431  // field getter/setter methods
432  virtual int getFinger() const;
433  virtual void setFinger(int finger);
434 };
435 
436 inline void doPacking(cCommBuffer *b, FixfingersCall& obj) {obj.parsimPack(b);}
437 inline void doUnpacking(cCommBuffer *b, FixfingersCall& obj) {obj.parsimUnpack(b);}
438 
450 {
451  protected:
453  NodeHandle *sucNode_var; // array ptr
454  unsigned int sucNode_arraysize;
455 
456  private:
457  void copy(const FixfingersResponse& other);
458 
459  protected:
460  // protected and unimplemented operator==(), to prevent accidental usage
461  bool operator==(const FixfingersResponse&);
462 
463  public:
464  FixfingersResponse(const char *name=NULL, int kind=0);
466  virtual ~FixfingersResponse();
468  virtual FixfingersResponse *dup() const {return new FixfingersResponse(*this);}
469  virtual void parsimPack(cCommBuffer *b);
470  virtual void parsimUnpack(cCommBuffer *b);
471 
472  // field getter/setter methods
473  virtual int getFinger() const;
474  virtual void setFinger(int finger);
475  virtual void setSucNodeArraySize(unsigned int size);
476  virtual unsigned int getSucNodeArraySize() const;
477  virtual NodeHandle& getSucNode(unsigned int k);
478  virtual const NodeHandle& getSucNode(unsigned int k) const {return const_cast<FixfingersResponse*>(this)->getSucNode(k);}
479  virtual void setSucNode(unsigned int k, const NodeHandle& sucNode);
480 };
481 
482 inline void doPacking(cCommBuffer *b, FixfingersResponse& obj) {obj.parsimPack(b);}
483 inline void doUnpacking(cCommBuffer *b, FixfingersResponse& obj) {obj.parsimUnpack(b);}
484 
495 class KoordeFindNodeExtMessage : public ::cPacket
496 {
497  protected:
499  int step_var;
500 
501  private:
502  void copy(const KoordeFindNodeExtMessage& other);
503 
504  protected:
505  // protected and unimplemented operator==(), to prevent accidental usage
507 
508  public:
509  KoordeFindNodeExtMessage(const char *name=NULL, int kind=0);
511  virtual ~KoordeFindNodeExtMessage();
513  virtual KoordeFindNodeExtMessage *dup() const {return new KoordeFindNodeExtMessage(*this);}
514  virtual void parsimPack(cCommBuffer *b);
515  virtual void parsimUnpack(cCommBuffer *b);
516 
517  // field getter/setter methods
518  virtual OverlayKey& getRouteKey();
519  virtual const OverlayKey& getRouteKey() const {return const_cast<KoordeFindNodeExtMessage*>(this)->getRouteKey();}
520  virtual void setRouteKey(const OverlayKey& routeKey);
521  virtual int getStep() const;
522  virtual void setStep(int step);
523 };
524 
525 inline void doPacking(cCommBuffer *b, KoordeFindNodeExtMessage& obj) {obj.parsimPack(b);}
526 inline void doUnpacking(cCommBuffer *b, KoordeFindNodeExtMessage& obj) {obj.parsimUnpack(b);}
527 
538 {
539  protected:
541 
542  private:
543  void copy(const DeBruijnCall& other);
544 
545  protected:
546  // protected and unimplemented operator==(), to prevent accidental usage
547  bool operator==(const DeBruijnCall&);
548 
549  public:
550  DeBruijnCall(const char *name=NULL, int kind=0);
551  DeBruijnCall(const DeBruijnCall& other);
552  virtual ~DeBruijnCall();
553  DeBruijnCall& operator=(const DeBruijnCall& other);
554  virtual DeBruijnCall *dup() const {return new DeBruijnCall(*this);}
555  virtual void parsimPack(cCommBuffer *b);
556  virtual void parsimUnpack(cCommBuffer *b);
557 
558  // field getter/setter methods
559  virtual OverlayKey& getDestKey();
560  virtual const OverlayKey& getDestKey() const {return const_cast<DeBruijnCall*>(this)->getDestKey();}
561  virtual void setDestKey(const OverlayKey& destKey);
562 };
563 
564 inline void doPacking(cCommBuffer *b, DeBruijnCall& obj) {obj.parsimPack(b);}
565 inline void doUnpacking(cCommBuffer *b, DeBruijnCall& obj) {obj.parsimUnpack(b);}
566 
579 {
580  protected:
583  NodeHandle *sucNode_var; // array ptr
584  unsigned int sucNode_arraysize;
585 
586  private:
587  void copy(const DeBruijnResponse& other);
588 
589  protected:
590  // protected and unimplemented operator==(), to prevent accidental usage
591  bool operator==(const DeBruijnResponse&);
592 
593  public:
594  DeBruijnResponse(const char *name=NULL, int kind=0);
595  DeBruijnResponse(const DeBruijnResponse& other);
596  virtual ~DeBruijnResponse();
598  virtual DeBruijnResponse *dup() const {return new DeBruijnResponse(*this);}
599  virtual void parsimPack(cCommBuffer *b);
600  virtual void parsimUnpack(cCommBuffer *b);
601 
602  // field getter/setter methods
603  virtual NodeHandle& getDBNode();
604  virtual const NodeHandle& getDBNode() const {return const_cast<DeBruijnResponse*>(this)->getDBNode();}
605  virtual void setDBNode(const NodeHandle& dBNode);
606  virtual int getSucNum() const;
607  virtual void setSucNum(int sucNum);
608  virtual void setSucNodeArraySize(unsigned int size);
609  virtual unsigned int getSucNodeArraySize() const;
610  virtual NodeHandle& getSucNode(unsigned int k);
611  virtual const NodeHandle& getSucNode(unsigned int k) const {return const_cast<DeBruijnResponse*>(this)->getSucNode(k);}
612  virtual void setSucNode(unsigned int k, const NodeHandle& sucNode);
613 };
614 
615 inline void doPacking(cCommBuffer *b, DeBruijnResponse& obj) {obj.parsimPack(b);}
616 inline void doUnpacking(cCommBuffer *b, DeBruijnResponse& obj) {obj.parsimUnpack(b);}
617 
618 
619 #endif // _CHORDMESSAGE_M_H_