RINASim
October 2016
Documentation of framework for OMNeT++
|
#include <PDUData_m.h>
Public Member Functions | |
virtual | ~PDUData_Base () |
virtual PDUData_Base * | dup () const |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) |
virtual bool | getMidFragment () const |
virtual void | setMidFragment (bool midFragment) |
virtual bool | getFirstFragment () const |
virtual void | setFirstFragment (bool firstFragment) |
virtual bool | getLastFragment () const |
virtual void | setLastFragment (bool lastFragment) |
virtual bool | getCompleteSDU () const |
virtual void | setCompleteSDU (bool completeSDU) |
Protected Member Functions | |
bool | operator== (const PDUData_Base &) |
PDUData_Base (const char *name=nullptr, int kind=0) | |
PDUData_Base (const PDUData_Base &other) | |
PDUData_Base & | operator= (const PDUData_Base &other) |
Protected Attributes | |
bool | midFragment |
bool | firstFragment |
bool | lastFragment |
bool | completeSDU |
Private Member Functions | |
void | copy (const PDUData_Base &other) |
Class generated from DIF/Delimiting/PDUData.msg:18
by nedtool.
packet PDUData { (true); bool midFragment = false; bool firstFragment = false; bool lastFragment = false; bool completeSDU = false;
}
PDUData_Base is only useful if it gets subclassed, and PDUData is derived from it. The minimum code to be written for PDUData is the following:
class PDUData : public PDUData_Base { private: void copy(const PDUData& other) { ... }
public: PDUData(const char *name=nullptr, int kind=0) : PDUData_Base(name,kind) {} PDUData(const PDUData& other) : PDUData_Base(other) {copy(other);} PDUData& operator=(const PDUData& other) {if (this==&other) return *this; PDUData_Base::operator=(other); copy(other); return *this;} virtual PDUData *dup() const {return new PDUData(*this);} // ADD CODE HERE to redefine and implement pure virtual functions from PDUData_Base };
The following should go into a .cc (.cpp) file:
Register_Class(PDUData);
Definition at line 56 of file PDUData_m.h.
|
protected |
Definition at line 164 of file PDUData_m.cc.
|
protected |
Definition at line 172 of file PDUData_m.cc.
|
virtual |
Definition at line 177 of file PDUData_m.cc.
|
private |
Definition at line 189 of file PDUData_m.cc.
Referenced by operator=(), and PDUData_Base().
|
inlinevirtual |
Reimplemented in PDUData.
Definition at line 78 of file PDUData_m.h.
|
virtual |
Definition at line 245 of file PDUData_m.cc.
Referenced by PDUDataDescriptor::getFieldValueAsString().
|
virtual |
Definition at line 225 of file PDUData_m.cc.
Referenced by PDUDataDescriptor::getFieldValueAsString().
|
virtual |
Definition at line 235 of file PDUData_m.cc.
Referenced by PDUDataDescriptor::getFieldValueAsString().
|
virtual |
Definition at line 215 of file PDUData_m.cc.
Referenced by PDUDataDescriptor::getFieldValueAsString().
|
protected |
Definition at line 181 of file PDUData_m.cc.
Referenced by PDUData::operator=().
|
protected |
|
virtual |
Definition at line 197 of file PDUData_m.cc.
|
virtual |
Definition at line 206 of file PDUData_m.cc.
|
virtual |
Definition at line 250 of file PDUData_m.cc.
Referenced by PDUDataDescriptor::setFieldValueAsString().
|
virtual |
Definition at line 230 of file PDUData_m.cc.
Referenced by PDUDataDescriptor::setFieldValueAsString().
|
virtual |
Definition at line 240 of file PDUData_m.cc.
Referenced by PDUDataDescriptor::setFieldValueAsString().
|
virtual |
Definition at line 220 of file PDUData_m.cc.
Referenced by PDUDataDescriptor::setFieldValueAsString().
|
protected |
Definition at line 62 of file PDUData_m.h.
Referenced by copy(), PDUData::encapsulate(), getCompleteSDU(), parsimPack(), parsimUnpack(), PDUData_Base(), and setCompleteSDU().
|
protected |
Definition at line 60 of file PDUData_m.h.
Referenced by copy(), PDUData::encapsulate(), getFirstFragment(), parsimPack(), parsimUnpack(), PDUData_Base(), and setFirstFragment().
|
protected |
Definition at line 61 of file PDUData_m.h.
Referenced by copy(), PDUData::encapsulate(), getLastFragment(), parsimPack(), parsimUnpack(), PDUData_Base(), and setLastFragment().
|
protected |
Definition at line 59 of file PDUData_m.h.
Referenced by copy(), PDUData::encapsulate(), getMidFragment(), parsimPack(), parsimUnpack(), PDUData_Base(), and setMidFragment().