INET Framework for OMNeT++/OMNEST
SCTPErrorChunk_Base Class Reference

#include <SCTPMessage_m.h>

Inheritance diagram for SCTPErrorChunk_Base:
SCTPChunk SCTPErrorChunk

List of all members.

Public Member Functions

virtual ~SCTPErrorChunk_Base ()
virtual SCTPErrorChunk_Basedup () const
virtual void parsimPack (cCommBuffer *b)
virtual void parsimUnpack (cCommBuffer *b)
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

Protected Member Functions

bool operator== (const SCTPErrorChunk_Base &)
 SCTPErrorChunk_Base (const char *name=NULL, int kind=0)
 SCTPErrorChunk_Base (const SCTPErrorChunk_Base &other)
SCTPErrorChunk_Baseoperator= (const SCTPErrorChunk_Base &other)

Protected Attributes

bool TBit_var
bool MBit_var

Private Member Functions

void copy (const SCTPErrorChunk_Base &other)

Detailed Description

Class generated from transport/sctp/SCTPMessage.msg by opp_msgc.

 message SCTPErrorChunk extends SCTPChunk
 {
      (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 SCTPErrorChunk : public SCTPErrorChunk_Base
 {
   private:
     void copy(const SCTPErrorChunk& other) { ... }
   public:
     SCTPErrorChunk(const char *name=NULL, int 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 {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);
 

Definition at line 1089 of file SCTPMessage_m.h.


Constructor & Destructor Documentation

SCTPErrorChunk_Base::SCTPErrorChunk_Base ( const char *  name = NULL,
int  kind = 0 
) [protected]

Member Function Documentation

void SCTPErrorChunk_Base::copy ( const SCTPErrorChunk_Base other) [private]
virtual SCTPErrorChunk_Base* SCTPErrorChunk_Base::dup ( ) const [inline, virtual]

Reimplemented from SCTPChunk.

Reimplemented in SCTPErrorChunk.

Definition at line 1109 of file SCTPMessage_m.h.

{throw cRuntimeError("You forgot to manually add a dup() function to class SCTPErrorChunk");}
virtual bool SCTPErrorChunk_Base::getMBit ( ) const [virtual]
virtual cPacketPtr& SCTPErrorChunk_Base::getParameters ( unsigned int  k) [pure virtual]
virtual const cPacketPtr& SCTPErrorChunk_Base::getParameters ( unsigned int  k) const [inline, virtual]

Definition at line 1121 of file SCTPMessage_m.h.

Referenced by getParameters().

{return const_cast<SCTPErrorChunk_Base*>(this)->getParameters(k);}
virtual unsigned int SCTPErrorChunk_Base::getParametersArraySize ( ) const [pure virtual]

Implemented in SCTPErrorChunk.

virtual bool SCTPErrorChunk_Base::getTBit ( ) const [virtual]
SCTPErrorChunk_Base& SCTPErrorChunk_Base::operator= ( const SCTPErrorChunk_Base other) [protected]
bool SCTPErrorChunk_Base::operator== ( const SCTPErrorChunk_Base ) [protected]
virtual void SCTPErrorChunk_Base::parsimPack ( cCommBuffer *  b) [virtual]

Reimplemented from SCTPChunk.

virtual void SCTPErrorChunk_Base::parsimUnpack ( cCommBuffer *  b) [virtual]

Reimplemented from SCTPChunk.

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

Member Data Documentation

Definition at line 1093 of file SCTPMessage_m.h.

Definition at line 1092 of file SCTPMessage_m.h.


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