OverSim
RealWorldTestMessage_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from applications/realworldtestapp/RealWorldTestMessage.msg.
3 //
4 
5 #ifndef _REALWORLDTESTMESSAGE_M_H_
6 #define _REALWORLDTESTMESSAGE_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 
17 
27 class RealWorldTestMessage : public ::cPacket
28 {
29  protected:
30  opp_string msg_var;
31 
32  private:
33  void copy(const RealWorldTestMessage& other);
34 
35  protected:
36  // protected and unimplemented operator==(), to prevent accidental usage
37  bool operator==(const RealWorldTestMessage&);
38 
39  public:
40  RealWorldTestMessage(const char *name=NULL, int kind=0);
42  virtual ~RealWorldTestMessage();
44  virtual RealWorldTestMessage *dup() const {return new RealWorldTestMessage(*this);}
45  virtual void parsimPack(cCommBuffer *b);
46  virtual void parsimUnpack(cCommBuffer *b);
47 
48  // field getter/setter methods
49  virtual const char * getMsg() const;
50  virtual void setMsg(const char * msg);
51 };
52 
53 inline void doPacking(cCommBuffer *b, RealWorldTestMessage& obj) {obj.parsimPack(b);}
54 inline void doUnpacking(cCommBuffer *b, RealWorldTestMessage& obj) {obj.parsimUnpack(b);}
55 
56 
57 #endif // _REALWORLDTESTMESSAGE_M_H_