00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.0 from common/cbr/CBR-DHTMessage.msg. 00003 // 00004 00005 #ifndef _CBR_DHTMESSAGE_M_H_ 00006 #define _CBR_DHTMESSAGE_M_H_ 00007 00008 #include <omnetpp.h> 00009 00010 // opp_msgc version check 00011 #define MSGC_VERSION 0x0400 00012 #if (MSGC_VERSION!=OMNETPP_VERSION) 00013 # error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help. 00014 #endif 00015 00016 // cplusplus {{ ... }} section: 00017 00018 #include <OverlayKey.h> 00019 #include <DHTMessage_m.h> 00020 // end cplusplus 00021 00022 00023 00033 class CBRDHTGetCall : public DHTGetCall 00034 { 00035 protected: 00036 OverlayKey originalKey_var; 00037 00038 // protected and unimplemented operator==(), to prevent accidental usage 00039 bool operator==(const CBRDHTGetCall&); 00040 00041 public: 00042 CBRDHTGetCall(const char *name=NULL, int kind=0); 00043 CBRDHTGetCall(const CBRDHTGetCall& other); 00044 virtual ~CBRDHTGetCall(); 00045 CBRDHTGetCall& operator=(const CBRDHTGetCall& other); 00046 virtual CBRDHTGetCall *dup() const {return new CBRDHTGetCall(*this);} 00047 virtual void parsimPack(cCommBuffer *b); 00048 virtual void parsimUnpack(cCommBuffer *b); 00049 00050 // field getter/setter methods 00051 virtual OverlayKey& getOriginalKey(); 00052 virtual const OverlayKey& getOriginalKey() const {return const_cast<CBRDHTGetCall*>(this)->getOriginalKey();} 00053 virtual void setOriginalKey(const OverlayKey& originalKey_var); 00054 }; 00055 00056 inline void doPacking(cCommBuffer *b, CBRDHTGetCall& obj) {obj.parsimPack(b);} 00057 inline void doUnpacking(cCommBuffer *b, CBRDHTGetCall& obj) {obj.parsimUnpack(b);} 00058 00068 class CBRDHTGetResponse : public DHTGetResponse 00069 { 00070 protected: 00071 OverlayKey originalKey_var; 00072 00073 // protected and unimplemented operator==(), to prevent accidental usage 00074 bool operator==(const CBRDHTGetResponse&); 00075 00076 public: 00077 CBRDHTGetResponse(const char *name=NULL, int kind=0); 00078 CBRDHTGetResponse(const CBRDHTGetResponse& other); 00079 virtual ~CBRDHTGetResponse(); 00080 CBRDHTGetResponse& operator=(const CBRDHTGetResponse& other); 00081 virtual CBRDHTGetResponse *dup() const {return new CBRDHTGetResponse(*this);} 00082 virtual void parsimPack(cCommBuffer *b); 00083 virtual void parsimUnpack(cCommBuffer *b); 00084 00085 // field getter/setter methods 00086 virtual OverlayKey& getOriginalKey(); 00087 virtual const OverlayKey& getOriginalKey() const {return const_cast<CBRDHTGetResponse*>(this)->getOriginalKey();} 00088 virtual void setOriginalKey(const OverlayKey& originalKey_var); 00089 }; 00090 00091 inline void doPacking(cCommBuffer *b, CBRDHTGetResponse& obj) {obj.parsimPack(b);} 00092 inline void doUnpacking(cCommBuffer *b, CBRDHTGetResponse& obj) {obj.parsimUnpack(b);} 00093 00094 00095 #endif // _CBR_DHTMESSAGE_M_H_
1.5.8