RINASim  October 2016
Documentation of framework for OMNeT++
PDUData_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by nedtool 5.0 from DIF/Delimiting/PDUData.msg.
3 //
4 
5 #ifndef __PDUDATA_M_H
6 #define __PDUDATA_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 
56 class PDUData_Base : public ::omnetpp::cPacket
57 {
58  protected:
63 
64  private:
65  void copy(const PDUData_Base& other);
66 
67  protected:
68  // protected and unimplemented operator==(), to prevent accidental usage
69  bool operator==(const PDUData_Base&);
70  // make constructors protected to avoid instantiation
71  PDUData_Base(const char *name=nullptr, int kind=0);
72  PDUData_Base(const PDUData_Base& other);
73  // make assignment operator protected to force the user override it
74  PDUData_Base& operator=(const PDUData_Base& other);
75 
76  public:
77  virtual ~PDUData_Base();
78  virtual PDUData_Base *dup() const {throw omnetpp::cRuntimeError("You forgot to manually add a dup() function to class PDUData");}
79  virtual void parsimPack(omnetpp::cCommBuffer *b) const;
80  virtual void parsimUnpack(omnetpp::cCommBuffer *b);
81 
82  // field getter/setter methods
83  virtual bool getMidFragment() const;
84  virtual void setMidFragment(bool midFragment);
85  virtual bool getFirstFragment() const;
86  virtual void setFirstFragment(bool firstFragment);
87  virtual bool getLastFragment() const;
88  virtual void setLastFragment(bool lastFragment);
89  virtual bool getCompleteSDU() const;
90  virtual void setCompleteSDU(bool completeSDU);
91 };
92 
93 
94 #endif // ifndef __PDUDATA_M_H
95 
virtual void setCompleteSDU(bool completeSDU)
Definition: PDUData_m.cc:250
bool operator==(const PDUData_Base &)
virtual bool getMidFragment() const
Definition: PDUData_m.cc:215
virtual void setLastFragment(bool lastFragment)
Definition: PDUData_m.cc:240
virtual void setMidFragment(bool midFragment)
Definition: PDUData_m.cc:220
virtual bool getCompleteSDU() const
Definition: PDUData_m.cc:245
PDUData_Base(const char *name=nullptr, int kind=0)
Definition: PDUData_m.cc:164
bool midFragment
Definition: PDUData_m.h:59
virtual void parsimPack(omnetpp::cCommBuffer *b) const
Definition: PDUData_m.cc:197
virtual void parsimUnpack(omnetpp::cCommBuffer *b)
Definition: PDUData_m.cc:206
virtual PDUData_Base * dup() const
Definition: PDUData_m.h:78
virtual bool getLastFragment() const
Definition: PDUData_m.cc:235
bool lastFragment
Definition: PDUData_m.h:61
void copy(const PDUData_Base &other)
Definition: PDUData_m.cc:189
virtual void setFirstFragment(bool firstFragment)
Definition: PDUData_m.cc:230
virtual ~PDUData_Base()
Definition: PDUData_m.cc:177
bool firstFragment
Definition: PDUData_m.h:60
PDUData_Base & operator=(const PDUData_Base &other)
Definition: PDUData_m.cc:181
bool completeSDU
Definition: PDUData_m.h:62
virtual bool getFirstFragment() const
Definition: PDUData_m.cc:225