00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.1 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 0x0401 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 {{ 00017 #include <OverlayKey.h> 00018 #include <DHTMessage_m.h> 00019 // }} 00020 00021 00022 00032 class CBRDHTGetCall : public ::DHTGetCall 00033 { 00034 protected: 00035 ::OverlayKey originalKey_var; 00036 00037 // protected and unimplemented operator==(), to prevent accidental usage 00038 bool operator==(const CBRDHTGetCall&); 00039 00040 public: 00041 CBRDHTGetCall(const char *name=NULL, int kind=0); 00042 CBRDHTGetCall(const CBRDHTGetCall& other); 00043 virtual ~CBRDHTGetCall(); 00044 CBRDHTGetCall& operator=(const CBRDHTGetCall& other); 00045 virtual CBRDHTGetCall *dup() const {return new CBRDHTGetCall(*this);} 00046 virtual void parsimPack(cCommBuffer *b); 00047 virtual void parsimUnpack(cCommBuffer *b); 00048 00049 // field getter/setter methods 00050 virtual OverlayKey& getOriginalKey(); 00051 virtual const OverlayKey& getOriginalKey() const {return const_cast<CBRDHTGetCall*>(this)->getOriginalKey();} 00052 virtual void setOriginalKey(const OverlayKey& originalKey_var); 00053 }; 00054 00055 inline void doPacking(cCommBuffer *b, CBRDHTGetCall& obj) {obj.parsimPack(b);} 00056 inline void doUnpacking(cCommBuffer *b, CBRDHTGetCall& obj) {obj.parsimUnpack(b);} 00057 00067 class CBRDHTGetResponse : public ::DHTGetResponse 00068 { 00069 protected: 00070 ::OverlayKey originalKey_var; 00071 00072 // protected and unimplemented operator==(), to prevent accidental usage 00073 bool operator==(const CBRDHTGetResponse&); 00074 00075 public: 00076 CBRDHTGetResponse(const char *name=NULL, int kind=0); 00077 CBRDHTGetResponse(const CBRDHTGetResponse& other); 00078 virtual ~CBRDHTGetResponse(); 00079 CBRDHTGetResponse& operator=(const CBRDHTGetResponse& other); 00080 virtual CBRDHTGetResponse *dup() const {return new CBRDHTGetResponse(*this);} 00081 virtual void parsimPack(cCommBuffer *b); 00082 virtual void parsimUnpack(cCommBuffer *b); 00083 00084 // field getter/setter methods 00085 virtual OverlayKey& getOriginalKey(); 00086 virtual const OverlayKey& getOriginalKey() const {return const_cast<CBRDHTGetResponse*>(this)->getOriginalKey();} 00087 virtual void setOriginalKey(const OverlayKey& originalKey_var); 00088 }; 00089 00090 inline void doPacking(cCommBuffer *b, CBRDHTGetResponse& obj) {obj.parsimPack(b);} 00091 inline void doUnpacking(cCommBuffer *b, CBRDHTGetResponse& obj) {obj.parsimUnpack(b);} 00092 00093 00094 #endif // _CBR_DHTMESSAGE_M_H_