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

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

#include <SCTPMessage_m.h>

Inheritance diagram for inet::sctp::SCTPAsconfAckChunk_Base:
inet::sctp::SCTPChunk inet::sctp::SCTPAsconfAckChunk

Public Member Functions

virtual ~SCTPAsconfAckChunk_Base ()
 
virtual SCTPAsconfAckChunk_Basedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual uint32_t getSerialNumber () const
 
virtual void setSerialNumber (uint32_t serialNumber)
 
virtual void setAsconfResponseArraySize (unsigned int size)=0
 
virtual unsigned int getAsconfResponseArraySize () const =0
 
virtual cPacketPtrgetAsconfResponse (unsigned int k)=0
 
virtual const cPacketPtrgetAsconfResponse (unsigned int k) const
 
virtual void setAsconfResponse (unsigned int k, const cPacketPtr &asconfResponse)=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 SCTPAsconfAckChunk_Base &)
 
 SCTPAsconfAckChunk_Base (const char *name=nullptr, short kind=0)
 
 SCTPAsconfAckChunk_Base (const SCTPAsconfAckChunk_Base &other)
 
SCTPAsconfAckChunk_Baseoperator= (const SCTPAsconfAckChunk_Base &other)
 
- Protected Member Functions inherited from inet::sctp::SCTPChunk
bool operator== (const SCTPChunk &)
 

Protected Attributes

uint32_t serialNumber
 
- Protected Attributes inherited from inet::sctp::SCTPChunk
uint8_t chunkType
 
uint32_t flags
 

Private Member Functions

void copy (const SCTPAsconfAckChunk_Base &other)
 

Detailed Description

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

message SCTPAsconfAckChunk extends SCTPChunk
{
    @customize(true);
    uint32 serialNumber;
    abstract cPacketPtr asconfResponse[];
}

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

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

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

Register_Class(SCTPAsconfAckChunk)

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from inet::sctp::SCTPChunk.

Reimplemented in inet::sctp::SCTPAsconfAckChunk.

1885 {throw omnetpp::cRuntimeError("You forgot to manually add a dup() function to class SCTPAsconfAckChunk");}
virtual cPacketPtr& inet::sctp::SCTPAsconfAckChunk_Base::getAsconfResponse ( unsigned int  k)
pure virtual
virtual const cPacketPtr& inet::sctp::SCTPAsconfAckChunk_Base::getAsconfResponse ( unsigned int  k) const
inlinevirtual

Referenced by getAsconfResponse().

1895 {return const_cast<SCTPAsconfAckChunk_Base*>(this)->getAsconfResponse(k);}
SCTPAsconfAckChunk_Base(const char *name=nullptr, short kind=0)
virtual cPacketPtr & getAsconfResponse(unsigned int k)=0
const double k
Definition: QAM16Modulation.cc:24
virtual unsigned int inet::sctp::SCTPAsconfAckChunk_Base::getAsconfResponseArraySize ( ) const
pure virtual
virtual uint32_t inet::sctp::SCTPAsconfAckChunk_Base::getSerialNumber ( ) const
virtual
SCTPAsconfAckChunk_Base& inet::sctp::SCTPAsconfAckChunk_Base::operator= ( const SCTPAsconfAckChunk_Base other)
protected
bool inet::sctp::SCTPAsconfAckChunk_Base::operator== ( const SCTPAsconfAckChunk_Base )
protected
virtual void inet::sctp::SCTPAsconfAckChunk_Base::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::sctp::SCTPChunk.

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

Reimplemented from inet::sctp::SCTPChunk.

virtual void inet::sctp::SCTPAsconfAckChunk_Base::setAsconfResponse ( unsigned int  k,
const cPacketPtr asconfResponse 
)
pure virtual
virtual void inet::sctp::SCTPAsconfAckChunk_Base::setAsconfResponseArraySize ( unsigned int  size)
pure virtual
virtual void inet::sctp::SCTPAsconfAckChunk_Base::setSerialNumber ( uint32_t  serialNumber)
virtual

Member Data Documentation

uint32_t inet::sctp::SCTPAsconfAckChunk_Base::serialNumber
protected

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