OverSim
CBR-DHTMessage_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/CBR-DHTMessage.msg.
3 //
4 
5 #ifndef _CBR_DHTMESSAGE_M_H_
6 #define _CBR_DHTMESSAGE_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 <DHTMessage_m.h>
19 // }}
20 
21 
22 
33 {
34  protected:
36 
37  private:
38  void copy(const CBRDHTGetCall& other);
39 
40  protected:
41  // protected and unimplemented operator==(), to prevent accidental usage
42  bool operator==(const CBRDHTGetCall&);
43 
44  public:
45  CBRDHTGetCall(const char *name=NULL, int kind=0);
46  CBRDHTGetCall(const CBRDHTGetCall& other);
47  virtual ~CBRDHTGetCall();
48  CBRDHTGetCall& operator=(const CBRDHTGetCall& other);
49  virtual CBRDHTGetCall *dup() const {return new CBRDHTGetCall(*this);}
50  virtual void parsimPack(cCommBuffer *b);
51  virtual void parsimUnpack(cCommBuffer *b);
52 
53  // field getter/setter methods
54  virtual OverlayKey& getOriginalKey();
55  virtual const OverlayKey& getOriginalKey() const {return const_cast<CBRDHTGetCall*>(this)->getOriginalKey();}
56  virtual void setOriginalKey(const OverlayKey& originalKey);
57 };
58 
59 inline void doPacking(cCommBuffer *b, CBRDHTGetCall& obj) {obj.parsimPack(b);}
60 inline void doUnpacking(cCommBuffer *b, CBRDHTGetCall& obj) {obj.parsimUnpack(b);}
61 
72 {
73  protected:
75 
76  private:
77  void copy(const CBRDHTGetResponse& other);
78 
79  protected:
80  // protected and unimplemented operator==(), to prevent accidental usage
81  bool operator==(const CBRDHTGetResponse&);
82 
83  public:
84  CBRDHTGetResponse(const char *name=NULL, int kind=0);
86  virtual ~CBRDHTGetResponse();
88  virtual CBRDHTGetResponse *dup() const {return new CBRDHTGetResponse(*this);}
89  virtual void parsimPack(cCommBuffer *b);
90  virtual void parsimUnpack(cCommBuffer *b);
91 
92  // field getter/setter methods
93  virtual OverlayKey& getOriginalKey();
94  virtual const OverlayKey& getOriginalKey() const {return const_cast<CBRDHTGetResponse*>(this)->getOriginalKey();}
95  virtual void setOriginalKey(const OverlayKey& originalKey);
96 };
97 
98 inline void doPacking(cCommBuffer *b, CBRDHTGetResponse& obj) {obj.parsimPack(b);}
99 inline void doUnpacking(cCommBuffer *b, CBRDHTGetResponse& obj) {obj.parsimUnpack(b);}
100 
101 
102 #endif // _CBR_DHTMESSAGE_M_H_