OverSim
OverSimMessage_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from common/OverSimMessage.msg.
3 //
4 
5 #ifndef _OVERSIMMESSAGE_M_H_
6 #define _OVERSIMMESSAGE_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 #if OMNETPP_VERSION<0x0401
18 #define getEncapsulatedPacket getEncapsulatedMsg
19 #endif
20 // }}
21 
22 
23 
57 class OverSimMessage_Base : public ::cPacket
58 {
59  protected:
60 
61  private:
62  void copy(const OverSimMessage_Base& other);
63 
64  protected:
65  // protected and unimplemented operator==(), to prevent accidental usage
66  bool operator==(const OverSimMessage_Base&);
67  // make constructors protected to avoid instantiation
68  OverSimMessage_Base(const char *name=NULL, int kind=0);
70  // make assignment operator protected to force the user override it
72 
73  public:
74  virtual ~OverSimMessage_Base();
75  virtual OverSimMessage_Base *dup() const {throw cRuntimeError("You forgot to manually add a dup() function to class OverSimMessage");}
76  virtual void parsimPack(cCommBuffer *b);
77  virtual void parsimUnpack(cCommBuffer *b);
78 
79  // field getter/setter methods
80 };
81 
82 
83 #endif // _OVERSIMMESSAGE_M_H_