INET Framework for OMNeT++/OMNEST
|
Class generated from inet/transportlayer/sctp/SCTPMessage.msg:260
by nedtool.
More...
#include <SCTPMessage_m.h>
Public Member Functions | |
virtual | ~SCTPStreamResetChunk_Base () |
virtual SCTPStreamResetChunk_Base * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
virtual void | setParametersArraySize (unsigned int size)=0 |
virtual unsigned int | getParametersArraySize () const =0 |
virtual cPacketPtr & | getParameters (unsigned int k)=0 |
virtual const cPacketPtr & | getParameters (unsigned int k) const |
virtual void | setParameters (unsigned int k, const cPacketPtr ¶meters)=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 SCTPStreamResetChunk_Base &) |
SCTPStreamResetChunk_Base (const char *name=nullptr, short kind=0) | |
SCTPStreamResetChunk_Base (const SCTPStreamResetChunk_Base &other) | |
SCTPStreamResetChunk_Base & | operator= (const SCTPStreamResetChunk_Base &other) |
Protected Member Functions inherited from inet::sctp::SCTPChunk | |
bool | operator== (const SCTPChunk &) |
Private Member Functions | |
void | copy (const SCTPStreamResetChunk_Base &other) |
Additional Inherited Members | |
Protected Attributes inherited from inet::sctp::SCTPChunk | |
uint8_t | chunkType |
uint32_t | flags |
Class generated from inet/transportlayer/sctp/SCTPMessage.msg:260
by nedtool.
message SCTPStreamResetChunk extends SCTPChunk { @customize(true); abstract cPacketPtr parameters[]; }
SCTPStreamResetChunk_Base is only useful if it gets subclassed, and SCTPStreamResetChunk is derived from it. The minimum code to be written for SCTPStreamResetChunk is the following:
class INET_API SCTPStreamResetChunk : public SCTPStreamResetChunk_Base { private: void copy(const SCTPStreamResetChunk& other) { ... }
public: SCTPStreamResetChunk(const char *name=nullptr, short kind=0) : SCTPStreamResetChunk_Base(name,kind) {} SCTPStreamResetChunk(const SCTPStreamResetChunk& other) : SCTPStreamResetChunk_Base(other) {copy(other);} SCTPStreamResetChunk& operator=(const SCTPStreamResetChunk& other) {if (this==&other) return *this; SCTPStreamResetChunk_Base::operator=(other); copy(other); return *this;} virtual SCTPStreamResetChunk *dup() const override {return new SCTPStreamResetChunk(*this);} // ADD CODE HERE to redefine and implement pure virtual functions from SCTPStreamResetChunk_Base };
The following should go into a .cc (.cpp) file:
Register_Class(SCTPStreamResetChunk)
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented from inet::sctp::SCTPChunk.
Reimplemented in inet::sctp::SCTPStreamResetChunk.
|
pure virtual |
|
inlinevirtual |
Referenced by getParameters().
|
pure virtual |
Implemented in inet::sctp::SCTPStreamResetChunk.
|
protected |
Referenced by inet::sctp::SCTPStreamResetChunk::operator=().
|
protected |
|
overridevirtual |
Reimplemented from inet::sctp::SCTPChunk.
|
overridevirtual |
Reimplemented from inet::sctp::SCTPChunk.
|
pure virtual |
|
pure virtual |