INET Framework for OMNeT++/OMNEST
RSVPResvError_Base Class Reference

#include <RSVPResvMsg_m.h>

Inheritance diagram for RSVPResvError_Base:
RSVPPacket RSVPPacket_Base RSVPMessage RSVPResvError

List of all members.

Public Member Functions

virtual ~RSVPResvError_Base ()
virtual RSVPResvError_Basedup () const
virtual void parsimPack (cCommBuffer *b)
virtual void parsimUnpack (cCommBuffer *b)
virtual RsvpHopObj_tgetHop ()
virtual const RsvpHopObj_tgetHop () const
virtual void setHop (const RsvpHopObj_t &hop)
virtual IPAddressgetErrorNode ()
virtual const IPAddressgetErrorNode () const
virtual void setErrorNode (const IPAddress &errorNode)
virtual int getErrorCode () const
virtual void setErrorCode (int errorCode)
virtual int getRsvpKind () const
virtual void setRsvpKind (int rsvpKind)

Protected Member Functions

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

Protected Attributes

RsvpHopObj_t hop_var
IPAddress errorNode_var
int errorCode_var
int rsvpKind_var

Private Member Functions

void copy (const RSVPResvError_Base &other)

Detailed Description

Class generated from networklayer/rsvp_te/RSVPResvMsg.msg by opp_msgc.

 packet RSVPResvError extends RSVPPacket
 {
     (true);
     RsvpHopObj_t hop;
     IPAddress errorNode;
     int errorCode;
     int rsvpKind = RERROR_MESSAGE;
 }
 

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

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

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

 Register_Class(RSVPResvError);
 

Definition at line 204 of file RSVPResvMsg_m.h.


Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from RSVPPacket.

Reimplemented in RSVPResvError.

Definition at line 226 of file RSVPResvMsg_m.h.

{throw cRuntimeError("You forgot to manually add a dup() function to class RSVPResvError");}
virtual int RSVPResvError_Base::getErrorCode ( ) const [virtual]
virtual const IPAddress& RSVPResvError_Base::getErrorNode ( ) const [inline, virtual]

Definition at line 235 of file RSVPResvMsg_m.h.

Referenced by getErrorNode().

{return const_cast<RSVPResvError_Base*>(this)->getErrorNode();}
virtual const RsvpHopObj_t& RSVPResvError_Base::getHop ( ) const [inline, virtual]

Definition at line 232 of file RSVPResvMsg_m.h.

Referenced by getHop().

{return const_cast<RSVPResvError_Base*>(this)->getHop();}
virtual int RSVPResvError_Base::getRsvpKind ( ) const [virtual]

Reimplemented from RSVPMessage.

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

Reimplemented from RSVPPacket_Base.

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

Reimplemented from RSVPPacket_Base.

virtual void RSVPResvError_Base::setErrorCode ( int  errorCode) [virtual]
virtual void RSVPResvError_Base::setErrorNode ( const IPAddress errorNode) [virtual]
virtual void RSVPResvError_Base::setHop ( const RsvpHopObj_t hop) [virtual]
virtual void RSVPResvError_Base::setRsvpKind ( int  rsvpKind) [virtual]

Reimplemented from RSVPMessage.


Member Data Documentation

Definition at line 209 of file RSVPResvMsg_m.h.

Definition at line 208 of file RSVPResvMsg_m.h.

Definition at line 207 of file RSVPResvMsg_m.h.

Reimplemented from RSVPMessage.

Definition at line 210 of file RSVPResvMsg_m.h.


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