00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.1 from overlay/myoverlay/MyOverlay.msg. 00003 // 00004 00005 #ifndef _MYOVERLAY_M_H_ 00006 #define _MYOVERLAY_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 <NodeHandle.h> 00018 #include <OverlayKey.h> 00019 #include <CommonMessages_m.h> 00020 // }} 00021 00022 00023 00033 class MyNeighborCall : public ::BaseCallMessage 00034 { 00035 protected: 00036 ::OverlayKey destinationKey_var; 00037 00038 // protected and unimplemented operator==(), to prevent accidental usage 00039 bool operator==(const MyNeighborCall&); 00040 00041 public: 00042 MyNeighborCall(const char *name=NULL, int kind=0); 00043 MyNeighborCall(const MyNeighborCall& other); 00044 virtual ~MyNeighborCall(); 00045 MyNeighborCall& operator=(const MyNeighborCall& other); 00046 virtual MyNeighborCall *dup() const {return new MyNeighborCall(*this);} 00047 virtual void parsimPack(cCommBuffer *b); 00048 virtual void parsimUnpack(cCommBuffer *b); 00049 00050 // field getter/setter methods 00051 virtual OverlayKey& getDestinationKey(); 00052 virtual const OverlayKey& getDestinationKey() const {return const_cast<MyNeighborCall*>(this)->getDestinationKey();} 00053 virtual void setDestinationKey(const OverlayKey& destinationKey_var); 00054 }; 00055 00056 inline void doPacking(cCommBuffer *b, MyNeighborCall& obj) {obj.parsimPack(b);} 00057 inline void doUnpacking(cCommBuffer *b, MyNeighborCall& obj) {obj.parsimUnpack(b);} 00058 00070 class MyNeighborResponse : public ::BaseResponseMessage 00071 { 00072 protected: 00073 ::NodeHandle respondingNode_var; 00074 ::NodeHandle prevNeighbor_var; 00075 ::NodeHandle nextNeighbor_var; 00076 00077 // protected and unimplemented operator==(), to prevent accidental usage 00078 bool operator==(const MyNeighborResponse&); 00079 00080 public: 00081 MyNeighborResponse(const char *name=NULL, int kind=0); 00082 MyNeighborResponse(const MyNeighborResponse& other); 00083 virtual ~MyNeighborResponse(); 00084 MyNeighborResponse& operator=(const MyNeighborResponse& other); 00085 virtual MyNeighborResponse *dup() const {return new MyNeighborResponse(*this);} 00086 virtual void parsimPack(cCommBuffer *b); 00087 virtual void parsimUnpack(cCommBuffer *b); 00088 00089 // field getter/setter methods 00090 virtual NodeHandle& getRespondingNode(); 00091 virtual const NodeHandle& getRespondingNode() const {return const_cast<MyNeighborResponse*>(this)->getRespondingNode();} 00092 virtual void setRespondingNode(const NodeHandle& respondingNode_var); 00093 virtual NodeHandle& getPrevNeighbor(); 00094 virtual const NodeHandle& getPrevNeighbor() const {return const_cast<MyNeighborResponse*>(this)->getPrevNeighbor();} 00095 virtual void setPrevNeighbor(const NodeHandle& prevNeighbor_var); 00096 virtual NodeHandle& getNextNeighbor(); 00097 virtual const NodeHandle& getNextNeighbor() const {return const_cast<MyNeighborResponse*>(this)->getNextNeighbor();} 00098 virtual void setNextNeighbor(const NodeHandle& nextNeighbor_var); 00099 }; 00100 00101 inline void doPacking(cCommBuffer *b, MyNeighborResponse& obj) {obj.parsimPack(b);} 00102 inline void doUnpacking(cCommBuffer *b, MyNeighborResponse& obj) {obj.parsimUnpack(b);} 00103 00104 00105 #endif // _MYOVERLAY_M_H_