OverSim
KBRTestMessage_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from applications/kbrtestapp/KBRTestMessage.msg.
3 //
4 
5 #ifndef _KBRTESTMESSAGE_M_H_
6 #define _KBRTESTMESSAGE_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 <OverlayKey.h>
18 #include <IPvXAddress.h>
19 #include <CommonMessages_m.h>
20 // }}
21 
22 
23 
36 class KBRTestMessage : public ::cPacket
37 {
38  protected:
39  int id_var;
42  IPvXAddress *visitedNodes_var; // array ptr
43  unsigned int visitedNodes_arraysize;
44 
45  private:
46  void copy(const KBRTestMessage& other);
47 
48  protected:
49  // protected and unimplemented operator==(), to prevent accidental usage
50  bool operator==(const KBRTestMessage&);
51 
52  public:
53  KBRTestMessage(const char *name=NULL, int kind=0);
54  KBRTestMessage(const KBRTestMessage& other);
55  virtual ~KBRTestMessage();
57  virtual KBRTestMessage *dup() const {return new KBRTestMessage(*this);}
58  virtual void parsimPack(cCommBuffer *b);
59  virtual void parsimUnpack(cCommBuffer *b);
60 
61  // field getter/setter methods
62  virtual int getId() const;
63  virtual void setId(int id);
64  virtual int getSeqNum() const;
65  virtual void setSeqNum(int seqNum);
66  virtual bool getMeasurementPhase() const;
67  virtual void setMeasurementPhase(bool measurementPhase);
68  virtual void setVisitedNodesArraySize(unsigned int size);
69  virtual unsigned int getVisitedNodesArraySize() const;
70  virtual IPvXAddress& getVisitedNodes(unsigned int k);
71  virtual const IPvXAddress& getVisitedNodes(unsigned int k) const {return const_cast<KBRTestMessage*>(this)->getVisitedNodes(k);}
72  virtual void setVisitedNodes(unsigned int k, const IPvXAddress& visitedNodes);
73 };
74 
75 inline void doPacking(cCommBuffer *b, KBRTestMessage& obj) {obj.parsimPack(b);}
76 inline void doUnpacking(cCommBuffer *b, KBRTestMessage& obj) {obj.parsimUnpack(b);}
77 
87 {
88  protected:
89 
90  private:
91  void copy(const KbrTestCall& other);
92 
93  protected:
94  // protected and unimplemented operator==(), to prevent accidental usage
95  bool operator==(const KbrTestCall&);
96 
97  public:
98  KbrTestCall(const char *name=NULL, int kind=0);
99  KbrTestCall(const KbrTestCall& other);
100  virtual ~KbrTestCall();
101  KbrTestCall& operator=(const KbrTestCall& other);
102  virtual KbrTestCall *dup() const {return new KbrTestCall(*this);}
103  virtual void parsimPack(cCommBuffer *b);
104  virtual void parsimUnpack(cCommBuffer *b);
105 
106  // field getter/setter methods
107 };
108 
109 inline void doPacking(cCommBuffer *b, KbrTestCall& obj) {obj.parsimPack(b);}
110 inline void doUnpacking(cCommBuffer *b, KbrTestCall& obj) {obj.parsimUnpack(b);}
111 
121 {
122  protected:
123 
124  private:
125  void copy(const KbrTestResponse& other);
126 
127  protected:
128  // protected and unimplemented operator==(), to prevent accidental usage
129  bool operator==(const KbrTestResponse&);
130 
131  public:
132  KbrTestResponse(const char *name=NULL, int kind=0);
133  KbrTestResponse(const KbrTestResponse& other);
134  virtual ~KbrTestResponse();
136  virtual KbrTestResponse *dup() const {return new KbrTestResponse(*this);}
137  virtual void parsimPack(cCommBuffer *b);
138  virtual void parsimUnpack(cCommBuffer *b);
139 
140  // field getter/setter methods
141 };
142 
143 inline void doPacking(cCommBuffer *b, KbrTestResponse& obj) {obj.parsimPack(b);}
144 inline void doUnpacking(cCommBuffer *b, KbrTestResponse& obj) {obj.parsimUnpack(b);}
145 
156 {
157  protected:
158  simtime_t sendTime_var;
159 
160  private:
161  void copy(const UnderlayTestCall& other);
162 
163  protected:
164  // protected and unimplemented operator==(), to prevent accidental usage
165  bool operator==(const UnderlayTestCall&);
166 
167  public:
168  UnderlayTestCall(const char *name=NULL, int kind=0);
169  UnderlayTestCall(const UnderlayTestCall& other);
170  virtual ~UnderlayTestCall();
172  virtual UnderlayTestCall *dup() const {return new UnderlayTestCall(*this);}
173  virtual void parsimPack(cCommBuffer *b);
174  virtual void parsimUnpack(cCommBuffer *b);
175 
176  // field getter/setter methods
177  virtual simtime_t getSendTime() const;
178  virtual void setSendTime(simtime_t sendTime);
179 };
180 
181 inline void doPacking(cCommBuffer *b, UnderlayTestCall& obj) {obj.parsimPack(b);}
182 inline void doUnpacking(cCommBuffer *b, UnderlayTestCall& obj) {obj.parsimUnpack(b);}
183 
194 {
195  protected:
196  simtime_t oneWayLatency_var;
197 
198  private:
199  void copy(const UnderlayTestResponse& other);
200 
201  protected:
202  // protected and unimplemented operator==(), to prevent accidental usage
203  bool operator==(const UnderlayTestResponse&);
204 
205  public:
206  UnderlayTestResponse(const char *name=NULL, int kind=0);
208  virtual ~UnderlayTestResponse();
210  virtual UnderlayTestResponse *dup() const {return new UnderlayTestResponse(*this);}
211  virtual void parsimPack(cCommBuffer *b);
212  virtual void parsimUnpack(cCommBuffer *b);
213 
214  // field getter/setter methods
215  virtual simtime_t getOneWayLatency() const;
216  virtual void setOneWayLatency(simtime_t oneWayLatency);
217 };
218 
219 inline void doPacking(cCommBuffer *b, UnderlayTestResponse& obj) {obj.parsimPack(b);}
220 inline void doUnpacking(cCommBuffer *b, UnderlayTestResponse& obj) {obj.parsimUnpack(b);}
221 
233 class KbrRpcContext : public ::cObject
234 {
235  protected:
239 
240  private:
241  void copy(const KbrRpcContext& other);
242 
243  protected:
244  // protected and unimplemented operator==(), to prevent accidental usage
245  bool operator==(const KbrRpcContext&);
246 
247  public:
248  KbrRpcContext();
249  KbrRpcContext(const KbrRpcContext& other);
250  virtual ~KbrRpcContext();
251  KbrRpcContext& operator=(const KbrRpcContext& other);
252  virtual KbrRpcContext *dup() const {return new KbrRpcContext(*this);}
253  virtual void parsimPack(cCommBuffer *b);
254  virtual void parsimUnpack(cCommBuffer *b);
255 
256  // field getter/setter methods
257  virtual OverlayKey& getDestKey();
258  virtual const OverlayKey& getDestKey() const {return const_cast<KbrRpcContext*>(this)->getDestKey();}
259  virtual void setDestKey(const OverlayKey& destKey);
260  virtual TransportAddress& getDestAddr();
261  virtual const TransportAddress& getDestAddr() const {return const_cast<KbrRpcContext*>(this)->getDestAddr();}
262  virtual void setDestAddr(const TransportAddress& destAddr);
263  virtual bool getMeasurementPhase() const;
264  virtual void setMeasurementPhase(bool measurementPhase);
265 };
266 
267 inline void doPacking(cCommBuffer *b, KbrRpcContext& obj) {obj.parsimPack(b);}
268 inline void doUnpacking(cCommBuffer *b, KbrRpcContext& obj) {obj.parsimUnpack(b);}
269 
270 
271 #endif // _KBRTESTMESSAGE_M_H_