OverSim
ExtAPIMessages_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from common/ExtAPIMessages.msg.
3 //
4 
5 #ifndef _EXTAPIMESSAGES_M_H_
6 #define _EXTAPIMESSAGES_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 static const int GIAAPPCOMMAND_L = 8;
20 #define GIASEARCHAPP_L(msg) (GIAAPPCOMMAND_L)
21 #define GIAPUT_L(msg) (GIASEARCHAPP_L(msg) + msg->getKeysArraySize() * KEY_L)
22 #define GIAGET_L(msg) (GIASEARCHAPP_L(msg) + KEY_L + MAXRESPONSES_L)
23 #define GIAGETRSP_L(msg) (GIASEARCHAPP_L(msg) + KEY_L + NODEHANDLE_L)
24 // }}
25 
26 
27 
41  GIA_PUT = 0,
44 };
45 
55 class GIASearchAppMessage : public ::cPacket
56 {
57  protected:
59 
60  private:
61  void copy(const GIASearchAppMessage& other);
62 
63  protected:
64  // protected and unimplemented operator==(), to prevent accidental usage
65  bool operator==(const GIASearchAppMessage&);
66 
67  public:
68  GIASearchAppMessage(const char *name=NULL, int kind=0);
70  virtual ~GIASearchAppMessage();
72  virtual GIASearchAppMessage *dup() const {return new GIASearchAppMessage(*this);}
73  virtual void parsimPack(cCommBuffer *b);
74  virtual void parsimUnpack(cCommBuffer *b);
75 
76  // field getter/setter methods
77  virtual int getCommand() const;
78  virtual void setCommand(int command);
79 };
80 
81 inline void doPacking(cCommBuffer *b, GIASearchAppMessage& obj) {obj.parsimPack(b);}
82 inline void doUnpacking(cCommBuffer *b, GIASearchAppMessage& obj) {obj.parsimUnpack(b);}
83 
94 {
95  protected:
96  OverlayKey *keys_var; // array ptr
97  unsigned int keys_arraysize;
98 
99  private:
100  void copy(const GIAput& other);
101 
102  protected:
103  // protected and unimplemented operator==(), to prevent accidental usage
104  bool operator==(const GIAput&);
105 
106  public:
107  GIAput(const char *name=NULL, int kind=0);
108  GIAput(const GIAput& other);
109  virtual ~GIAput();
110  GIAput& operator=(const GIAput& other);
111  virtual GIAput *dup() const {return new GIAput(*this);}
112  virtual void parsimPack(cCommBuffer *b);
113  virtual void parsimUnpack(cCommBuffer *b);
114 
115  // field getter/setter methods
116  virtual void setKeysArraySize(unsigned int size);
117  virtual unsigned int getKeysArraySize() const;
118  virtual OverlayKey& getKeys(unsigned int k);
119  virtual const OverlayKey& getKeys(unsigned int k) const {return const_cast<GIAput*>(this)->getKeys(k);}
120  virtual void setKeys(unsigned int k, const OverlayKey& keys);
121 };
122 
123 inline void doPacking(cCommBuffer *b, GIAput& obj) {obj.parsimPack(b);}
124 inline void doUnpacking(cCommBuffer *b, GIAput& obj) {obj.parsimUnpack(b);}
125 
135 {
136  protected:
137 
138  private:
139  void copy(const GIAremove& other);
140 
141  protected:
142  // protected and unimplemented operator==(), to prevent accidental usage
143  bool operator==(const GIAremove&);
144 
145  public:
146  GIAremove(const char *name=NULL, int kind=0);
147  GIAremove(const GIAremove& other);
148  virtual ~GIAremove();
149  GIAremove& operator=(const GIAremove& other);
150  virtual GIAremove *dup() const {return new GIAremove(*this);}
151  virtual void parsimPack(cCommBuffer *b);
152  virtual void parsimUnpack(cCommBuffer *b);
153 
154  // field getter/setter methods
155 };
156 
157 inline void doPacking(cCommBuffer *b, GIAremove& obj) {obj.parsimPack(b);}
158 inline void doUnpacking(cCommBuffer *b, GIAremove& obj) {obj.parsimUnpack(b);}
159 
171 {
172  protected:
175 
176  private:
177  void copy(const GIAsearch& other);
178 
179  protected:
180  // protected and unimplemented operator==(), to prevent accidental usage
181  bool operator==(const GIAsearch&);
182 
183  public:
184  GIAsearch(const char *name=NULL, int kind=0);
185  GIAsearch(const GIAsearch& other);
186  virtual ~GIAsearch();
187  GIAsearch& operator=(const GIAsearch& other);
188  virtual GIAsearch *dup() const {return new GIAsearch(*this);}
189  virtual void parsimPack(cCommBuffer *b);
190  virtual void parsimUnpack(cCommBuffer *b);
191 
192  // field getter/setter methods
193  virtual OverlayKey& getSearchKey();
194  virtual const OverlayKey& getSearchKey() const {return const_cast<GIAsearch*>(this)->getSearchKey();}
195  virtual void setSearchKey(const OverlayKey& searchKey);
196  virtual int getMaxResponses() const;
197  virtual void setMaxResponses(int maxResponses);
198 };
199 
200 inline void doPacking(cCommBuffer *b, GIAsearch& obj) {obj.parsimPack(b);}
201 inline void doUnpacking(cCommBuffer *b, GIAsearch& obj) {obj.parsimUnpack(b);}
202 
214 {
215  protected:
218 
219  private:
220  void copy(const GIAanswer& other);
221 
222  protected:
223  // protected and unimplemented operator==(), to prevent accidental usage
224  bool operator==(const GIAanswer&);
225 
226  public:
227  GIAanswer(const char *name=NULL, int kind=0);
228  GIAanswer(const GIAanswer& other);
229  virtual ~GIAanswer();
230  GIAanswer& operator=(const GIAanswer& other);
231  virtual GIAanswer *dup() const {return new GIAanswer(*this);}
232  virtual void parsimPack(cCommBuffer *b);
233  virtual void parsimUnpack(cCommBuffer *b);
234 
235  // field getter/setter methods
236  virtual OverlayKey& getSearchKey();
237  virtual const OverlayKey& getSearchKey() const {return const_cast<GIAanswer*>(this)->getSearchKey();}
238  virtual void setSearchKey(const OverlayKey& searchKey);
239  virtual NodeHandle& getNode();
240  virtual const NodeHandle& getNode() const {return const_cast<GIAanswer*>(this)->getNode();}
241  virtual void setNode(const NodeHandle& node);
242 };
243 
244 inline void doPacking(cCommBuffer *b, GIAanswer& obj) {obj.parsimPack(b);}
245 inline void doUnpacking(cCommBuffer *b, GIAanswer& obj) {obj.parsimUnpack(b);}
246 
247 
248 #endif // _EXTAPIMESSAGES_M_H_