RSVPPathError_Base Class Reference

#include <RSVPPathMsg_m.h>

Inheritance diagram for RSVPPathError_Base:

RSVPPacket RSVPPacket_Base RSVPMessage RSVPPathError List of all members.

Detailed Description

Class generated from RSVPPathMsg.msg by opp_msgc.
 message RSVPPathError extends RSVPPacket
 {
     properties:
         customize=true;
     fields:
         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
 {
   public:
     RSVPPathError(const char *name=NULL, int kind=0) : RSVPPathError_Base(name,kind) {}
     RSVPPathError(const RSVPPathError& other) : RSVPPathError_Base(other.name()) {operator=(other);}
     RSVPPathError& operator=(const RSVPPathError& other) {RSVPPathError_Base::operator=(other); return *this;}
     virtual cPolymorphic *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);
 


Public Member Functions

virtual ~RSVPPathError_Base ()
virtual cPolymorphic * dup () const
virtual void netPack (cCommBuffer *b)
virtual void netUnpack (cCommBuffer *b)
virtual IPAddressgetErrorNode ()
virtual const IPAddressgetErrorNode () const
virtual void setErrorNode (const IPAddress &errorNode_var)
virtual int getErrorCode () const
virtual void setErrorCode (int errorCode_var)
virtual SenderDescriptor_tgetSender_descriptor ()
virtual const SenderDescriptor_tgetSender_descriptor () const
virtual void setSender_descriptor (const SenderDescriptor_t &sender_descriptor_var)
virtual int getRsvpKind () const
virtual void setRsvpKind (int rsvpKind_var)

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


Constructor & Destructor Documentation

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

RSVPPathError_Base::RSVPPathError_Base ( const RSVPPathError_Base other  )  [protected]

virtual RSVPPathError_Base::~RSVPPathError_Base (  )  [virtual]


Member Function Documentation

virtual cPolymorphic* RSVPPathError_Base::dup (  )  const [inline, virtual]

Reimplemented from RSVPPacket_Base.

00231 {throw new cRuntimeError("You forgot to manually add a dup() function to class RSVPPathError");}

virtual int RSVPPathError_Base::getErrorCode (  )  const [virtual]

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

00237 {return const_cast<RSVPPathError_Base*>(this)->getErrorNode();}

virtual IPAddress& RSVPPathError_Base::getErrorNode (  )  [virtual]

virtual int RSVPPathError_Base::getRsvpKind (  )  const [virtual]

Reimplemented from RSVPMessage.

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

00242 {return const_cast<RSVPPathError_Base*>(this)->getSender_descriptor();}

virtual SenderDescriptor_t& RSVPPathError_Base::getSender_descriptor (  )  [virtual]

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

Reimplemented from RSVPPacket_Base.

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

Reimplemented from RSVPPacket_Base.

RSVPPathError_Base& RSVPPathError_Base::operator= ( const RSVPPathError_Base other  )  [protected]

bool RSVPPathError_Base::operator== ( const RSVPPathError_Base  )  [protected]

virtual void RSVPPathError_Base::setErrorCode ( int  errorCode_var  )  [virtual]

virtual void RSVPPathError_Base::setErrorNode ( const IPAddress errorNode_var  )  [virtual]

virtual void RSVPPathError_Base::setRsvpKind ( int  rsvpKind_var  )  [virtual]

Reimplemented from RSVPMessage.

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


Member Data Documentation

int RSVPPathError_Base::errorCode_var [protected]

IPAddress RSVPPathError_Base::errorNode_var [protected]

int RSVPPathError_Base::rsvpKind_var [protected]

Reimplemented from RSVPMessage.

SenderDescriptor_t RSVPPathError_Base::sender_descriptor_var [protected]


The documentation for this class was generated from the following file:
Generated on Wed Apr 4 13:20:23 2007 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.7