OverSim
TCPExampleMessage_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from applications/tcpexampleapp/TCPExampleMessage.msg.
3 //
4 
5 #ifndef _TCPEXAMPLEMESSAGE_M_H_
6 #define _TCPEXAMPLEMESSAGE_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 <TransportAddress.h>
18 // }}
19 
20 
21 
35 };
36 
47 class TCPExampleMessage : public ::cPacket
48 {
49  protected:
50  int type_var;
52 
53  private:
54  void copy(const TCPExampleMessage& other);
55 
56  protected:
57  // protected and unimplemented operator==(), to prevent accidental usage
58  bool operator==(const TCPExampleMessage&);
59 
60  public:
61  TCPExampleMessage(const char *name=NULL, int kind=0);
63  virtual ~TCPExampleMessage();
65  virtual TCPExampleMessage *dup() const {return new TCPExampleMessage(*this);}
66  virtual void parsimPack(cCommBuffer *b);
67  virtual void parsimUnpack(cCommBuffer *b);
68 
69  // field getter/setter methods
70  virtual int getType() const;
71  virtual void setType(int type);
73  virtual const TransportAddress& getSenderAddress() const {return const_cast<TCPExampleMessage*>(this)->getSenderAddress();}
74  virtual void setSenderAddress(const TransportAddress& senderAddress);
75 };
76 
77 inline void doPacking(cCommBuffer *b, TCPExampleMessage& obj) {obj.parsimPack(b);}
78 inline void doUnpacking(cCommBuffer *b, TCPExampleMessage& obj) {obj.parsimUnpack(b);}
79 
80 
81 #endif // _TCPEXAMPLEMESSAGE_M_H_