RSVPPathMsg_Base Class Reference

#include <RSVPPathMsg_m.h>

Inheritance diagram for RSVPPathMsg_Base:

RSVPPacket RSVPPacket_Base RSVPMessage RSVPPathMsg List of all members.

Detailed Description

Class generated from RSVPPathMsg.msg by opp_msgc.
 message RSVPPathMsg extends RSVPPacket
 {
     properties:
         customize=true;
     fields:
         RsvpHopObj_t hop;
         LabelRequestObj_t label_request;
         SenderDescriptor_t sender_descriptor;
         EroVector ERO;
         int color;

         int rsvpKind = PATH_MESSAGE;
 };
 

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

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

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

 Register_Class(RSVPPathMsg);
 


Public Member Functions

virtual ~RSVPPathMsg_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 LabelRequestObj_tgetLabel_request ()
virtual const LabelRequestObj_tgetLabel_request () const
virtual void setLabel_request (const LabelRequestObj_t &label_request_var)
virtual SenderDescriptor_tgetSender_descriptor ()
virtual const SenderDescriptor_tgetSender_descriptor () const
virtual void setSender_descriptor (const SenderDescriptor_t &sender_descriptor_var)
virtual EroVectorgetERO ()
virtual const EroVectorgetERO () const
virtual void setERO (const EroVector &ERO_var)
virtual int getColor () const
virtual void setColor (int color_var)
virtual int getRsvpKind () const
virtual void setRsvpKind (int rsvpKind_var)

Protected Member Functions

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

Protected Attributes

RsvpHopObj_t hop_var
LabelRequestObj_t label_request_var
SenderDescriptor_t sender_descriptor_var
EroVector ERO_var
int color_var
int rsvpKind_var


Constructor & Destructor Documentation

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

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

virtual RSVPPathMsg_Base::~RSVPPathMsg_Base (  )  [virtual]


Member Function Documentation

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

Reimplemented from RSVPPacket_Base.

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

virtual int RSVPPathMsg_Base::getColor (  )  const [virtual]

virtual const EroVector& RSVPPathMsg_Base::getERO (  )  const [inline, virtual]

00097 {return const_cast<RSVPPathMsg_Base*>(this)->getERO();}

virtual EroVector& RSVPPathMsg_Base::getERO (  )  [virtual]

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

00088 {return const_cast<RSVPPathMsg_Base*>(this)->getHop();}

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

virtual const LabelRequestObj_t& RSVPPathMsg_Base::getLabel_request (  )  const [inline, virtual]

00091 {return const_cast<RSVPPathMsg_Base*>(this)->getLabel_request();}

virtual LabelRequestObj_t& RSVPPathMsg_Base::getLabel_request (  )  [virtual]

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

Reimplemented from RSVPMessage.

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

00094 {return const_cast<RSVPPathMsg_Base*>(this)->getSender_descriptor();}

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

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

Reimplemented from RSVPPacket_Base.

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

Reimplemented from RSVPPacket_Base.

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

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

virtual void RSVPPathMsg_Base::setColor ( int  color_var  )  [virtual]

virtual void RSVPPathMsg_Base::setERO ( const EroVector ERO_var  )  [virtual]

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

virtual void RSVPPathMsg_Base::setLabel_request ( const LabelRequestObj_t label_request_var  )  [virtual]

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

Reimplemented from RSVPMessage.

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


Member Data Documentation

int RSVPPathMsg_Base::color_var [protected]

EroVector RSVPPathMsg_Base::ERO_var [protected]

RsvpHopObj_t RSVPPathMsg_Base::hop_var [protected]

LabelRequestObj_t RSVPPathMsg_Base::label_request_var [protected]

int RSVPPathMsg_Base::rsvpKind_var [protected]

Reimplemented from RSVPMessage.

SenderDescriptor_t RSVPPathMsg_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