OverSim
CoordMessages_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from common/cbr/CoordMessages.msg.
3 //
4 
5 #ifndef _COORDMESSAGES_M_H_
6 #define _COORDMESSAGES_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 <TransportAddress.h>
18 #include <CommonMessages_m.h>
19 
20 static const int LAYER_L = 8;
21 
22 #define COORDSOFNODECALL_L(msg) BASECALL_L(msg)
23 #define COORDSOFNODERESPONSE_L(msg) (BASERESPONSE_L(msg) + LAYER_L)
24 // }}
25 
26 
27 
37 {
38  protected:
39 
40  private:
41  void copy(const CoordsOfNodeCall& other);
42 
43  protected:
44  // protected and unimplemented operator==(), to prevent accidental usage
45  bool operator==(const CoordsOfNodeCall&);
46 
47  public:
48  CoordsOfNodeCall(const char *name=NULL, int kind=0);
49  CoordsOfNodeCall(const CoordsOfNodeCall& other);
50  virtual ~CoordsOfNodeCall();
52  virtual CoordsOfNodeCall *dup() const {return new CoordsOfNodeCall(*this);}
53  virtual void parsimPack(cCommBuffer *b);
54  virtual void parsimUnpack(cCommBuffer *b);
55 
56  // field getter/setter methods
57 };
58 
59 inline void doPacking(cCommBuffer *b, CoordsOfNodeCall& obj) {obj.parsimPack(b);}
60 inline void doUnpacking(cCommBuffer *b, CoordsOfNodeCall& obj) {obj.parsimUnpack(b);}
61 
72 {
73  protected:
75 
76  private:
77  void copy(const RttToNodeCall& other);
78 
79  protected:
80  // protected and unimplemented operator==(), to prevent accidental usage
81  bool operator==(const RttToNodeCall&);
82 
83  public:
84  RttToNodeCall(const char *name=NULL, int kind=0);
85  RttToNodeCall(const RttToNodeCall& other);
86  virtual ~RttToNodeCall();
87  RttToNodeCall& operator=(const RttToNodeCall& other);
88  virtual RttToNodeCall *dup() const {return new RttToNodeCall(*this);}
89  virtual void parsimPack(cCommBuffer *b);
90  virtual void parsimUnpack(cCommBuffer *b);
91 
92  // field getter/setter methods
94  virtual const TransportAddress& getNodeToPing() const {return const_cast<RttToNodeCall*>(this)->getNodeToPing();}
95  virtual void setNodeToPing(const TransportAddress& nodeToPing);
96 };
97 
98 inline void doPacking(cCommBuffer *b, RttToNodeCall& obj) {obj.parsimPack(b);}
99 inline void doUnpacking(cCommBuffer *b, RttToNodeCall& obj) {obj.parsimUnpack(b);}
100 
112 {
113  protected:
114  char layer_var;
115 
116  private:
117  void copy(const CoordsOfNodeResponse& other);
118 
119  protected:
120  // protected and unimplemented operator==(), to prevent accidental usage
121  bool operator==(const CoordsOfNodeResponse&);
122 
123  public:
124  CoordsOfNodeResponse(const char *name=NULL, int kind=0);
126  virtual ~CoordsOfNodeResponse();
128  virtual CoordsOfNodeResponse *dup() const {return new CoordsOfNodeResponse(*this);}
129  virtual void parsimPack(cCommBuffer *b);
130  virtual void parsimUnpack(cCommBuffer *b);
131 
132  // field getter/setter methods
133  virtual char getLayer() const;
134  virtual void setLayer(char layer);
135 };
136 
137 inline void doPacking(cCommBuffer *b, CoordsOfNodeResponse& obj) {obj.parsimPack(b);}
138 inline void doUnpacking(cCommBuffer *b, CoordsOfNodeResponse& obj) {obj.parsimUnpack(b);}
139 
152 {
153  protected:
155  double *ownCoordinates_var; // array ptr
157  simtime_t rttToNode_var;
158 
159  private:
160  void copy(const RttToNodeResponse& other);
161 
162  protected:
163  // protected and unimplemented operator==(), to prevent accidental usage
164  bool operator==(const RttToNodeResponse&);
165 
166  public:
167  RttToNodeResponse(const char *name=NULL, int kind=0);
168  RttToNodeResponse(const RttToNodeResponse& other);
169  virtual ~RttToNodeResponse();
171  virtual RttToNodeResponse *dup() const {return new RttToNodeResponse(*this);}
172  virtual void parsimPack(cCommBuffer *b);
173  virtual void parsimUnpack(cCommBuffer *b);
174 
175  // field getter/setter methods
176  virtual TransportAddress& getPingedNode();
177  virtual const TransportAddress& getPingedNode() const {return const_cast<RttToNodeResponse*>(this)->getPingedNode();}
178  virtual void setPingedNode(const TransportAddress& pingedNode);
179  virtual void setOwnCoordinatesArraySize(unsigned int size);
180  virtual unsigned int getOwnCoordinatesArraySize() const;
181  virtual double getOwnCoordinates(unsigned int k) const;
182  virtual void setOwnCoordinates(unsigned int k, double ownCoordinates);
183  virtual simtime_t getRttToNode() const;
184  virtual void setRttToNode(simtime_t rttToNode);
185 };
186 
187 inline void doPacking(cCommBuffer *b, RttToNodeResponse& obj) {obj.parsimPack(b);}
188 inline void doUnpacking(cCommBuffer *b, RttToNodeResponse& obj) {obj.parsimUnpack(b);}
189 
190 
191 #endif // _COORDMESSAGES_M_H_