INET Framework for OMNeT++/OMNEST
|
Class generated from inet/transportlayer/sctp/SCTPMessage.msg:326
by nedtool.
More...
#include <SCTPMessage_m.h>
Public Member Functions | |
virtual | ~SCTPAsconfAckChunk_Base () |
virtual SCTPAsconfAckChunk_Base * | dup () 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 cPacketPtr & | getAsconfResponse (unsigned int k)=0 |
virtual const cPacketPtr & | getAsconfResponse (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 () |
SCTPChunk & | operator= (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_Base & | operator= (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) |
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)
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented from inet::sctp::SCTPChunk.
Reimplemented in inet::sctp::SCTPAsconfAckChunk.
|
pure virtual |
|
inlinevirtual |
Referenced by getAsconfResponse().
|
pure virtual |
Implemented in inet::sctp::SCTPAsconfAckChunk.
|
virtual |
|
protected |
Referenced by inet::sctp::SCTPAsconfAckChunk::operator=().
|
protected |
|
overridevirtual |
Reimplemented from inet::sctp::SCTPChunk.
|
overridevirtual |
Reimplemented from inet::sctp::SCTPChunk.
|
pure virtual |
|
pure virtual |
|
virtual |
|
protected |