OverSim
ProximityLookupMessages_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from common/ProximityLookupMessages.msg.
3 //
4 
5 #ifndef _PROXIMITYLOOKUPMESSAGES_M_H_
6 #define _PROXIMITYLOOKUPMESSAGES_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 #define PROXFINDNODECALL_L(msg) (FINDNODECALL_L(msg))
20 #define PROXFINDNODERESPONSE_L(msg) (FINDNODERESPONSE_L(msg) + \
21  (msg->getNextHopNcsInfosArraySize() ? \
22  msg->getNextHopNcsInfosArraySize() * 32 : \
23  0))
24 // }}
25 
26 
27 
44  NONE = 0,
45  BY_KEY = 1,
46  BY_KEY_X = 2,
51 };
52 
62 {
63  protected:
64 
65  private:
66  void copy(const ProxFindNodeCall& other);
67 
68  protected:
69  // protected and unimplemented operator==(), to prevent accidental usage
70  bool operator==(const ProxFindNodeCall&);
71 
72  public:
73  ProxFindNodeCall(const char *name=NULL, int kind=0);
74  ProxFindNodeCall(const ProxFindNodeCall& other);
75  virtual ~ProxFindNodeCall();
77  virtual ProxFindNodeCall *dup() const {return new ProxFindNodeCall(*this);}
78  virtual void parsimPack(cCommBuffer *b);
79  virtual void parsimUnpack(cCommBuffer *b);
80 
81  // field getter/setter methods
82 };
83 
84 inline void doPacking(cCommBuffer *b, ProxFindNodeCall& obj) {obj.parsimPack(b);}
85 inline void doUnpacking(cCommBuffer *b, ProxFindNodeCall& obj) {obj.parsimUnpack(b);}
86 
97 {
98  protected:
99  double *nextHopNcsInfos_var; // array ptr
101 
102  private:
103  void copy(const ProxFindNodeResponse& other);
104 
105  protected:
106  // protected and unimplemented operator==(), to prevent accidental usage
107  bool operator==(const ProxFindNodeResponse&);
108 
109  public:
110  ProxFindNodeResponse(const char *name=NULL, int kind=0);
112  virtual ~ProxFindNodeResponse();
114  virtual ProxFindNodeResponse *dup() const {return new ProxFindNodeResponse(*this);}
115  virtual void parsimPack(cCommBuffer *b);
116  virtual void parsimUnpack(cCommBuffer *b);
117 
118  // field getter/setter methods
119  virtual void setNextHopNcsInfosArraySize(unsigned int size);
120  virtual unsigned int getNextHopNcsInfosArraySize() const;
121  virtual double getNextHopNcsInfos(unsigned int k) const;
122  virtual void setNextHopNcsInfos(unsigned int k, double nextHopNcsInfos);
123 };
124 
125 inline void doPacking(cCommBuffer *b, ProxFindNodeResponse& obj) {obj.parsimPack(b);}
126 inline void doUnpacking(cCommBuffer *b, ProxFindNodeResponse& obj) {obj.parsimUnpack(b);}
127 
128 
129 #endif // _PROXIMITYLOOKUPMESSAGES_M_H_