RINASim  October 2016
Documentation of framework for OMNeT++
PDUData_Base Class Reference

#include <PDUData_m.h>

Inheritance diagram for PDUData_Base:
PDUData

Public Member Functions

virtual ~PDUData_Base ()
 
virtual PDUData_Basedup () 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_Baseoperator= (const PDUData_Base &other)
 

Protected Attributes

bool midFragment
 
bool firstFragment
 
bool lastFragment
 
bool completeSDU
 

Private Member Functions

void copy (const PDUData_Base &other)
 

Detailed Description

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.

Constructor & Destructor Documentation

PDUData_Base::PDUData_Base ( const char *  name = nullptr,
int  kind = 0 
)
protected

Definition at line 164 of file PDUData_m.cc.

PDUData_Base::PDUData_Base ( const PDUData_Base other)
protected

Definition at line 172 of file PDUData_m.cc.

PDUData_Base::~PDUData_Base ( )
virtual

Definition at line 177 of file PDUData_m.cc.

Member Function Documentation

void PDUData_Base::copy ( const PDUData_Base other)
private

Definition at line 189 of file PDUData_m.cc.

Referenced by operator=(), and PDUData_Base().

virtual PDUData_Base* PDUData_Base::dup ( ) const
inlinevirtual

Reimplemented in PDUData.

Definition at line 78 of file PDUData_m.h.

bool PDUData_Base::getCompleteSDU ( ) const
virtual

Definition at line 245 of file PDUData_m.cc.

Referenced by PDUDataDescriptor::getFieldValueAsString().

bool PDUData_Base::getFirstFragment ( ) const
virtual

Definition at line 225 of file PDUData_m.cc.

Referenced by PDUDataDescriptor::getFieldValueAsString().

bool PDUData_Base::getLastFragment ( ) const
virtual

Definition at line 235 of file PDUData_m.cc.

Referenced by PDUDataDescriptor::getFieldValueAsString().

bool PDUData_Base::getMidFragment ( ) const
virtual

Definition at line 215 of file PDUData_m.cc.

Referenced by PDUDataDescriptor::getFieldValueAsString().

PDUData_Base & PDUData_Base::operator= ( const PDUData_Base other)
protected

Definition at line 181 of file PDUData_m.cc.

Referenced by PDUData::operator=().

bool PDUData_Base::operator== ( const PDUData_Base )
protected
void PDUData_Base::parsimPack ( omnetpp::cCommBuffer *  b) const
virtual

Definition at line 197 of file PDUData_m.cc.

void PDUData_Base::parsimUnpack ( omnetpp::cCommBuffer *  b)
virtual

Definition at line 206 of file PDUData_m.cc.

void PDUData_Base::setCompleteSDU ( bool  completeSDU)
virtual

Definition at line 250 of file PDUData_m.cc.

Referenced by PDUDataDescriptor::setFieldValueAsString().

void PDUData_Base::setFirstFragment ( bool  firstFragment)
virtual

Definition at line 230 of file PDUData_m.cc.

Referenced by PDUDataDescriptor::setFieldValueAsString().

void PDUData_Base::setLastFragment ( bool  lastFragment)
virtual

Definition at line 240 of file PDUData_m.cc.

Referenced by PDUDataDescriptor::setFieldValueAsString().

void PDUData_Base::setMidFragment ( bool  midFragment)
virtual

Definition at line 220 of file PDUData_m.cc.

Referenced by PDUDataDescriptor::setFieldValueAsString().

Member Data Documentation

bool PDUData_Base::completeSDU
protected
bool PDUData_Base::firstFragment
protected
bool PDUData_Base::lastFragment
protected
bool PDUData_Base::midFragment
protected

The documentation for this class was generated from the following files: