RINASim  October 2016
Documentation of framework for OMNeT++
Data_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by nedtool 5.0 from DIF/Delimiting/Data.msg.
3 //
4 
5 #ifndef __DATA_M_H
6 #define __DATA_M_H
7 
8 #include <omnetpp.h>
9 
10 // nedtool version check
11 #define MSGC_VERSION 0x0500
12 #if (MSGC_VERSION!=OMNETPP_VERSION)
13 # error Version mismatch! Probably this file was generated by an earlier version of nedtool: 'make clean' should help.
14 #endif
15 
16 
17 
31 enum DataType {
36 };
37 
80 class Data_Base : public ::omnetpp::cPacket
81 {
82  protected:
83  int dataType;
84  int64_t encapMsgLength;
85 
86  private:
87  void copy(const Data_Base& other);
88 
89  protected:
90  // protected and unimplemented operator==(), to prevent accidental usage
91  bool operator==(const Data_Base&);
92  // make constructors protected to avoid instantiation
93  Data_Base(const char *name=nullptr, int kind=0);
94  Data_Base(const Data_Base& other);
95  // make assignment operator protected to force the user override it
96  Data_Base& operator=(const Data_Base& other);
97 
98  public:
99  virtual ~Data_Base();
100  virtual Data_Base *dup() const {throw omnetpp::cRuntimeError("You forgot to manually add a dup() function to class Data");}
101  virtual void parsimPack(omnetpp::cCommBuffer *b) const;
102  virtual void parsimUnpack(omnetpp::cCommBuffer *b);
103 
104  // field getter/setter methods
105  virtual int getDataType() const;
106  virtual void setDataType(int dataType);
107  virtual int64_t getEncapMsgLength() const;
108  virtual void setEncapMsgLength(int64_t encapMsgLength);
109 };
110 
111 
112 #endif // ifndef __DATA_M_H
113 
virtual void setEncapMsgLength(int64_t encapMsgLength)
Definition: Data_m.cc:231
DataType
Definition: Data_m.h:31
Data_Base(const char *name=nullptr, int kind=0)
Definition: Data_m.cc:173
virtual void parsimPack(omnetpp::cCommBuffer *b) const
Definition: Data_m.cc:202
bool operator==(const Data_Base &)
int dataType
Definition: Data_m.h:83
virtual int64_t getEncapMsgLength() const
Definition: Data_m.cc:226
int64_t encapMsgLength
Definition: Data_m.h:84
virtual ~Data_Base()
Definition: Data_m.cc:184
virtual void setDataType(int dataType)
Definition: Data_m.cc:221
virtual void parsimUnpack(omnetpp::cCommBuffer *b)
Definition: Data_m.cc:209
Data_Base & operator=(const Data_Base &other)
Definition: Data_m.cc:188
virtual int getDataType() const
Definition: Data_m.cc:216
virtual Data_Base * dup() const
Definition: Data_m.h:100
void copy(const Data_Base &other)
Definition: Data_m.cc:196