RSVPResvError_Base Class Reference

#include <RSVPResvMsg_m.h>

Inheritance diagram for RSVPResvError_Base:

RSVPPacket RSVPPacket_Base RSVPMessage RSVPResvError List of all members.

Detailed Description

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


Public Member Functions

virtual ~RSVPResvError_Base ()
virtual cPolymorphic * dup () const
virtual void netPack (cCommBuffer *b)
virtual void netUnpack (cCommBuffer *b)
virtual RsvpHopObj_tgetHop ()
virtual const RsvpHopObj_tgetHop () const
virtual void setHop (const RsvpHopObj_t &hop_var)
virtual IPAddressgetErrorNode ()
virtual const IPAddressgetErrorNode () const
virtual void setErrorNode (const IPAddress &errorNode_var)
virtual int getErrorCode () const
virtual void setErrorCode (int errorCode_var)
virtual int getRsvpKind () const
virtual void setRsvpKind (int rsvpKind_var)

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


Constructor & Destructor Documentation

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

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

virtual RSVPResvError_Base::~RSVPResvError_Base (  )  [virtual]


Member Function Documentation

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

Reimplemented from RSVPPacket_Base.

00211 {throw new 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]

00220 {return const_cast<RSVPResvError_Base*>(this)->getErrorNode();}

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

virtual const RsvpHopObj_t& RSVPResvError_Base::getHop (  )  const [inline, virtual]

00217 {return const_cast<RSVPResvError_Base*>(this)->getHop();}

virtual RsvpHopObj_t& RSVPResvError_Base::getHop (  )  [virtual]

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

Reimplemented from RSVPMessage.

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

Reimplemented from RSVPPacket_Base.

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

Reimplemented from RSVPPacket_Base.

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

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

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

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

virtual void RSVPResvError_Base::setHop ( const RsvpHopObj_t hop_var  )  [virtual]

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

Reimplemented from RSVPMessage.


Member Data Documentation

int RSVPResvError_Base::errorCode_var [protected]

IPAddress RSVPResvError_Base::errorNode_var [protected]

RsvpHopObj_t RSVPResvError_Base::hop_var [protected]

int RSVPResvError_Base::rsvpKind_var [protected]

Reimplemented from RSVPMessage.


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