OverSim
MyOverlay_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from overlay/myoverlay/MyOverlay.msg.
3 //
4 
5 #ifndef _MYOVERLAY_M_H_
6 #define _MYOVERLAY_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 <NodeHandle.h>
18 #include <OverlayKey.h>
19 #include <CommonMessages_m.h>
20 // }}
21 
22 
23 
34 {
35  protected:
37 
38  private:
39  void copy(const MyNeighborCall& other);
40 
41  protected:
42  // protected and unimplemented operator==(), to prevent accidental usage
43  bool operator==(const MyNeighborCall&);
44 
45  public:
46  MyNeighborCall(const char *name=NULL, int kind=0);
47  MyNeighborCall(const MyNeighborCall& other);
48  virtual ~MyNeighborCall();
50  virtual MyNeighborCall *dup() const {return new MyNeighborCall(*this);}
51  virtual void parsimPack(cCommBuffer *b);
52  virtual void parsimUnpack(cCommBuffer *b);
53 
54  // field getter/setter methods
55  virtual OverlayKey& getDestinationKey();
56  virtual const OverlayKey& getDestinationKey() const {return const_cast<MyNeighborCall*>(this)->getDestinationKey();}
57  virtual void setDestinationKey(const OverlayKey& destinationKey);
58 };
59 
60 inline void doPacking(cCommBuffer *b, MyNeighborCall& obj) {obj.parsimPack(b);}
61 inline void doUnpacking(cCommBuffer *b, MyNeighborCall& obj) {obj.parsimUnpack(b);}
62 
75 {
76  protected:
80 
81  private:
82  void copy(const MyNeighborResponse& other);
83 
84  protected:
85  // protected and unimplemented operator==(), to prevent accidental usage
86  bool operator==(const MyNeighborResponse&);
87 
88  public:
89  MyNeighborResponse(const char *name=NULL, int kind=0);
91  virtual ~MyNeighborResponse();
93  virtual MyNeighborResponse *dup() const {return new MyNeighborResponse(*this);}
94  virtual void parsimPack(cCommBuffer *b);
95  virtual void parsimUnpack(cCommBuffer *b);
96 
97  // field getter/setter methods
98  virtual NodeHandle& getRespondingNode();
99  virtual const NodeHandle& getRespondingNode() const {return const_cast<MyNeighborResponse*>(this)->getRespondingNode();}
100  virtual void setRespondingNode(const NodeHandle& respondingNode);
101  virtual NodeHandle& getPrevNeighbor();
102  virtual const NodeHandle& getPrevNeighbor() const {return const_cast<MyNeighborResponse*>(this)->getPrevNeighbor();}
103  virtual void setPrevNeighbor(const NodeHandle& prevNeighbor);
104  virtual NodeHandle& getNextNeighbor();
105  virtual const NodeHandle& getNextNeighbor() const {return const_cast<MyNeighborResponse*>(this)->getNextNeighbor();}
106  virtual void setNextNeighbor(const NodeHandle& nextNeighbor);
107 };
108 
109 inline void doPacking(cCommBuffer *b, MyNeighborResponse& obj) {obj.parsimPack(b);}
110 inline void doUnpacking(cCommBuffer *b, MyNeighborResponse& obj) {obj.parsimUnpack(b);}
111 
112 
113 #endif // _MYOVERLAY_M_H_