INET Framework for OMNeT++/OMNEST
RSVPPathError_Base Class Reference

#include <RSVPPathMsg_m.h>

Inheritance diagram for RSVPPathError_Base:
RSVPPacket RSVPPacket_Base RSVPMessage RSVPPathError

List of all members.

Public Member Functions

virtual ~RSVPPathError_Base ()
virtual RSVPPathError_Basedup () const
virtual void parsimPack (cCommBuffer *b)
virtual void parsimUnpack (cCommBuffer *b)
virtual IPAddressgetErrorNode ()
virtual const IPAddressgetErrorNode () const
virtual void setErrorNode (const IPAddress &errorNode)
virtual int getErrorCode () const
virtual void setErrorCode (int errorCode)
virtual SenderDescriptor_tgetSender_descriptor ()
virtual const SenderDescriptor_tgetSender_descriptor () const
virtual void setSender_descriptor (const SenderDescriptor_t &sender_descriptor)
virtual int getRsvpKind () const
virtual void setRsvpKind (int rsvpKind)

Protected Member Functions

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

Protected Attributes

IPAddress errorNode_var
int errorCode_var
SenderDescriptor_t sender_descriptor_var
int rsvpKind_var

Private Member Functions

void copy (const RSVPPathError_Base &other)

Detailed Description

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

 packet RSVPPathError extends RSVPPacket
 {
     (true);
     IPAddress errorNode;
     int errorCode;
     SenderDescriptor_t sender_descriptor;
     int rsvpKind = PERROR_MESSAGE;
 }
 

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

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

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

 Register_Class(RSVPPathError);
 

Definition at line 224 of file RSVPPathMsg_m.h.


Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from RSVPPacket.

Reimplemented in RSVPPathError.

Definition at line 246 of file RSVPPathMsg_m.h.

{throw cRuntimeError("You forgot to manually add a dup() function to class RSVPPathError");}
virtual int RSVPPathError_Base::getErrorCode ( ) const [virtual]

Referenced by RSVP::processPathErrMsg().

virtual const IPAddress& RSVPPathError_Base::getErrorNode ( ) const [inline, virtual]

Definition at line 252 of file RSVPPathMsg_m.h.

Referenced by getErrorNode().

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

Reimplemented from RSVPMessage.

virtual const SenderDescriptor_t& RSVPPathError_Base::getSender_descriptor ( ) const [inline, virtual]

Definition at line 257 of file RSVPPathMsg_m.h.

Referenced by getSender_descriptor().

{return const_cast<RSVPPathError_Base*>(this)->getSender_descriptor();}
RSVPPathError_Base& RSVPPathError_Base::operator= ( const RSVPPathError_Base other) [protected]
bool RSVPPathError_Base::operator== ( const RSVPPathError_Base ) [protected]
virtual void RSVPPathError_Base::parsimPack ( cCommBuffer *  b) [virtual]

Reimplemented from RSVPPacket_Base.

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

Reimplemented from RSVPPacket_Base.

virtual void RSVPPathError_Base::setErrorCode ( int  errorCode) [virtual]
virtual void RSVPPathError_Base::setErrorNode ( const IPAddress errorNode) [virtual]
virtual void RSVPPathError_Base::setRsvpKind ( int  rsvpKind) [virtual]

Reimplemented from RSVPMessage.

virtual void RSVPPathError_Base::setSender_descriptor ( const SenderDescriptor_t sender_descriptor) [virtual]

Member Data Documentation

Definition at line 228 of file RSVPPathMsg_m.h.

Definition at line 227 of file RSVPPathMsg_m.h.

Reimplemented from RSVPMessage.

Definition at line 230 of file RSVPPathMsg_m.h.


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