P2pnsMessage_m.h

Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.1 from tier2/p2pns/P2pnsMessage.msg.
00003 //
00004 
00005 #ifndef _P2PNSMESSAGE_M_H_
00006 #define _P2PNSMESSAGE_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 <IPvXAddress.h>
00018 #include <NodeHandle.h>
00019 #include <TransportAddress.h>
00020 #include <CommonMessages_m.h>
00021 #include <BinaryValue.h>
00022 
00023 #define P2PNSTUNNELMESSAGE_L(msg) (KEY_L + \
00024                                    msg->getPayload().size() * sizeof(char))
00025 // }}
00026 
00027 
00028 
00039 class P2pnsTunnelMessage : public ::OverSimMessage
00040 {
00041   protected:
00042     ::OverlayKey srcId_var;
00043     ::BinaryValue payload_var;
00044 
00045     // protected and unimplemented operator==(), to prevent accidental usage
00046     bool operator==(const P2pnsTunnelMessage&);
00047 
00048   public:
00049     P2pnsTunnelMessage(const char *name=NULL, int kind=0);
00050     P2pnsTunnelMessage(const P2pnsTunnelMessage& other);
00051     virtual ~P2pnsTunnelMessage();
00052     P2pnsTunnelMessage& operator=(const P2pnsTunnelMessage& other);
00053     virtual P2pnsTunnelMessage *dup() const {return new P2pnsTunnelMessage(*this);}
00054     virtual void parsimPack(cCommBuffer *b);
00055     virtual void parsimUnpack(cCommBuffer *b);
00056 
00057     // field getter/setter methods
00058     virtual OverlayKey& getSrcId();
00059     virtual const OverlayKey& getSrcId() const {return const_cast<P2pnsTunnelMessage*>(this)->getSrcId();}
00060     virtual void setSrcId(const OverlayKey& srcId_var);
00061     virtual BinaryValue& getPayload();
00062     virtual const BinaryValue& getPayload() const {return const_cast<P2pnsTunnelMessage*>(this)->getPayload();}
00063     virtual void setPayload(const BinaryValue& payload_var);
00064 };
00065 
00066 inline void doPacking(cCommBuffer *b, P2pnsTunnelMessage& obj) {obj.parsimPack(b);}
00067 inline void doUnpacking(cCommBuffer *b, P2pnsTunnelMessage& obj) {obj.parsimUnpack(b);}
00068 
00078 class P2pnsKeepaliveTimer : public ::cMessage
00079 {
00080   protected:
00081     ::OverlayKey key_var;
00082 
00083     // protected and unimplemented operator==(), to prevent accidental usage
00084     bool operator==(const P2pnsKeepaliveTimer&);
00085 
00086   public:
00087     P2pnsKeepaliveTimer(const char *name=NULL, int kind=0);
00088     P2pnsKeepaliveTimer(const P2pnsKeepaliveTimer& other);
00089     virtual ~P2pnsKeepaliveTimer();
00090     P2pnsKeepaliveTimer& operator=(const P2pnsKeepaliveTimer& other);
00091     virtual P2pnsKeepaliveTimer *dup() const {return new P2pnsKeepaliveTimer(*this);}
00092     virtual void parsimPack(cCommBuffer *b);
00093     virtual void parsimUnpack(cCommBuffer *b);
00094 
00095     // field getter/setter methods
00096     virtual OverlayKey& getKey();
00097     virtual const OverlayKey& getKey() const {return const_cast<P2pnsKeepaliveTimer*>(this)->getKey();}
00098     virtual void setKey(const OverlayKey& key_var);
00099 };
00100 
00101 inline void doPacking(cCommBuffer *b, P2pnsKeepaliveTimer& obj) {obj.parsimPack(b);}
00102 inline void doUnpacking(cCommBuffer *b, P2pnsKeepaliveTimer& obj) {obj.parsimUnpack(b);}
00103 
00104 
00105 #endif // _P2PNSMESSAGE_M_H_