OverSim
P2pnsMessage_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from tier2/p2pns/P2pnsMessage.msg.
3 //
4 
5 #ifndef _P2PNSMESSAGE_M_H_
6 #define _P2PNSMESSAGE_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 <IPvXAddress.h>
18 #include <NodeHandle.h>
19 #include <TransportAddress.h>
20 #include <CommonMessages_m.h>
21 #include <BinaryValue.h>
22 
23 #define P2PNSTUNNELMESSAGE_L(msg) (KEY_L + \
24  msg->getPayload().size() * sizeof(char))
25 // }}
26 
27 
28 
40 {
41  protected:
44 
45  private:
46  void copy(const P2pnsTunnelMessage& other);
47 
48  protected:
49  // protected and unimplemented operator==(), to prevent accidental usage
50  bool operator==(const P2pnsTunnelMessage&);
51 
52  public:
53  P2pnsTunnelMessage(const char *name=NULL, int kind=0);
55  virtual ~P2pnsTunnelMessage();
57  virtual P2pnsTunnelMessage *dup() const {return new P2pnsTunnelMessage(*this);}
58  virtual void parsimPack(cCommBuffer *b);
59  virtual void parsimUnpack(cCommBuffer *b);
60 
61  // field getter/setter methods
62  virtual OverlayKey& getSrcId();
63  virtual const OverlayKey& getSrcId() const {return const_cast<P2pnsTunnelMessage*>(this)->getSrcId();}
64  virtual void setSrcId(const OverlayKey& srcId);
65  virtual BinaryValue& getPayload();
66  virtual const BinaryValue& getPayload() const {return const_cast<P2pnsTunnelMessage*>(this)->getPayload();}
67  virtual void setPayload(const BinaryValue& payload);
68 };
69 
70 inline void doPacking(cCommBuffer *b, P2pnsTunnelMessage& obj) {obj.parsimPack(b);}
71 inline void doUnpacking(cCommBuffer *b, P2pnsTunnelMessage& obj) {obj.parsimUnpack(b);}
72 
82 class P2pnsKeepaliveTimer : public ::cMessage
83 {
84  protected:
86 
87  private:
88  void copy(const P2pnsKeepaliveTimer& other);
89 
90  protected:
91  // protected and unimplemented operator==(), to prevent accidental usage
92  bool operator==(const P2pnsKeepaliveTimer&);
93 
94  public:
95  P2pnsKeepaliveTimer(const char *name=NULL, int kind=0);
97  virtual ~P2pnsKeepaliveTimer();
99  virtual P2pnsKeepaliveTimer *dup() const {return new P2pnsKeepaliveTimer(*this);}
100  virtual void parsimPack(cCommBuffer *b);
101  virtual void parsimUnpack(cCommBuffer *b);
102 
103  // field getter/setter methods
104  virtual OverlayKey& getKey();
105  virtual const OverlayKey& getKey() const {return const_cast<P2pnsKeepaliveTimer*>(this)->getKey();}
106  virtual void setKey(const OverlayKey& key);
107 };
108 
109 inline void doPacking(cCommBuffer *b, P2pnsKeepaliveTimer& obj) {obj.parsimPack(b);}
110 inline void doUnpacking(cCommBuffer *b, P2pnsKeepaliveTimer& obj) {obj.parsimUnpack(b);}
111 
112 
113 #endif // _P2PNSMESSAGE_M_H_