INET Framework for OMNeT++/OMNEST
inet::sctp::SCTPErrorChunk_Base Class Referenceabstract

Class generated from inet/transportlayer/sctp/SCTPMessage.msg:236 by nedtool. More...

#include <SCTPMessage_m.h>

Inheritance diagram for inet::sctp::SCTPErrorChunk_Base:
inet::sctp::SCTPChunk inet::sctp::SCTPErrorChunk

Public Member Functions

virtual ~SCTPErrorChunk_Base ()
 
virtual SCTPErrorChunk_Basedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual bool getTBit () const
 
virtual void setTBit (bool TBit)
 
virtual bool getMBit () const
 
virtual void setMBit (bool MBit)
 
virtual void setParametersArraySize (unsigned int size)=0
 
virtual unsigned int getParametersArraySize () const =0
 
virtual cPacketPtrgetParameters (unsigned int k)=0
 
virtual const cPacketPtrgetParameters (unsigned int k) const
 
virtual void setParameters (unsigned int k, const cPacketPtr &parameters)=0
 
- Public Member Functions inherited from inet::sctp::SCTPChunk
 SCTPChunk (const char *name=nullptr, short kind=0)
 
 SCTPChunk (const SCTPChunk &other)
 
virtual ~SCTPChunk ()
 
SCTPChunkoperator= (const SCTPChunk &other)
 
virtual uint8_t getChunkType () const
 
virtual void setChunkType (uint8_t chunkType)
 
virtual uint32_t getFlags () const
 
virtual void setFlags (uint32_t flags)
 

Protected Member Functions

bool operator== (const SCTPErrorChunk_Base &)
 
 SCTPErrorChunk_Base (const char *name=nullptr, short kind=0)
 
 SCTPErrorChunk_Base (const SCTPErrorChunk_Base &other)
 
SCTPErrorChunk_Baseoperator= (const SCTPErrorChunk_Base &other)
 
- Protected Member Functions inherited from inet::sctp::SCTPChunk
bool operator== (const SCTPChunk &)
 

Protected Attributes

bool TBit
 
bool MBit
 
- Protected Attributes inherited from inet::sctp::SCTPChunk
uint8_t chunkType
 
uint32_t flags
 

Private Member Functions

void copy (const SCTPErrorChunk_Base &other)
 

Detailed Description

Class generated from inet/transportlayer/sctp/SCTPMessage.msg:236 by nedtool.

message SCTPErrorChunk extends SCTPChunk
{
    @customize(true);
    bool TBit = 0;
    bool MBit = 0;
    abstract cPacketPtr parameters[];
}

SCTPErrorChunk_Base is only useful if it gets subclassed, and SCTPErrorChunk is derived from it. The minimum code to be written for SCTPErrorChunk is the following:

class INET_API SCTPErrorChunk : public SCTPErrorChunk_Base
{
  private:
    void copy(const SCTPErrorChunk& other) { ... }
  public:
    SCTPErrorChunk(const char *name=nullptr, short kind=0) : SCTPErrorChunk_Base(name,kind) {}
    SCTPErrorChunk(const SCTPErrorChunk& other) : SCTPErrorChunk_Base(other) {copy(other);}
    SCTPErrorChunk& operator=(const SCTPErrorChunk& other) {if (this==&other) return *this; SCTPErrorChunk_Base::operator=(other); copy(other); return *this;}
    virtual SCTPErrorChunk *dup() const override {return new SCTPErrorChunk(*this);}
    // ADD CODE HERE to redefine and implement pure virtual functions from SCTPErrorChunk_Base
};

The following should go into a .cc (.cpp) file:

Register_Class(SCTPErrorChunk)

Constructor & Destructor Documentation

inet::sctp::SCTPErrorChunk_Base::SCTPErrorChunk_Base ( const char *  name = nullptr,
short  kind = 0 
)
protected
inet::sctp::SCTPErrorChunk_Base::SCTPErrorChunk_Base ( const SCTPErrorChunk_Base other)
protected
virtual inet::sctp::SCTPErrorChunk_Base::~SCTPErrorChunk_Base ( )
virtual

Member Function Documentation

void inet::sctp::SCTPErrorChunk_Base::copy ( const SCTPErrorChunk_Base other)
private
virtual SCTPErrorChunk_Base* inet::sctp::SCTPErrorChunk_Base::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::sctp::SCTPChunk.

Reimplemented in inet::sctp::SCTPErrorChunk.

1215 {throw omnetpp::cRuntimeError("You forgot to manually add a dup() function to class SCTPErrorChunk");}
virtual bool inet::sctp::SCTPErrorChunk_Base::getMBit ( ) const
virtual
virtual cPacketPtr& inet::sctp::SCTPErrorChunk_Base::getParameters ( unsigned int  k)
pure virtual
virtual const cPacketPtr& inet::sctp::SCTPErrorChunk_Base::getParameters ( unsigned int  k) const
inlinevirtual

Referenced by getParameters().

1227 {return const_cast<SCTPErrorChunk_Base*>(this)->getParameters(k);}
virtual cPacketPtr & getParameters(unsigned int k)=0
const double k
Definition: QAM16Modulation.cc:24
SCTPErrorChunk_Base(const char *name=nullptr, short kind=0)
virtual unsigned int inet::sctp::SCTPErrorChunk_Base::getParametersArraySize ( ) const
pure virtual

Implemented in inet::sctp::SCTPErrorChunk.

virtual bool inet::sctp::SCTPErrorChunk_Base::getTBit ( ) const
virtual
SCTPErrorChunk_Base& inet::sctp::SCTPErrorChunk_Base::operator= ( const SCTPErrorChunk_Base other)
protected
bool inet::sctp::SCTPErrorChunk_Base::operator== ( const SCTPErrorChunk_Base )
protected
virtual void inet::sctp::SCTPErrorChunk_Base::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::sctp::SCTPChunk.

virtual void inet::sctp::SCTPErrorChunk_Base::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

Reimplemented from inet::sctp::SCTPChunk.

virtual void inet::sctp::SCTPErrorChunk_Base::setMBit ( bool  MBit)
virtual
virtual void inet::sctp::SCTPErrorChunk_Base::setParameters ( unsigned int  k,
const cPacketPtr parameters 
)
pure virtual
virtual void inet::sctp::SCTPErrorChunk_Base::setParametersArraySize ( unsigned int  size)
pure virtual
virtual void inet::sctp::SCTPErrorChunk_Base::setTBit ( bool  TBit)
virtual

Member Data Documentation

bool inet::sctp::SCTPErrorChunk_Base::MBit
protected
bool inet::sctp::SCTPErrorChunk_Base::TBit
protected

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