RSVPResvMsg_Base Class Reference

#include <RSVPResvMsg_m.h>

Inheritance diagram for RSVPResvMsg_Base:

RSVPPacket RSVPPacket_Base RSVPMessage RSVPResvMsg List of all members.

Detailed Description

Class generated from RSVPResvMsg.msg by opp_msgc.
 message RSVPResvMsg extends RSVPPacket
 {
     properties:
         customize=true;
     fields:
         RsvpHopObj_t hop;
         FlowDescriptorVector flowDescriptor;
         int rsvpKind = RESV_MESSAGE;
 }
 

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

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

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

 Register_Class(RSVPResvMsg);
 


Public Member Functions

virtual ~RSVPResvMsg_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 FlowDescriptorVectorgetFlowDescriptor ()
virtual const FlowDescriptorVectorgetFlowDescriptor () const
virtual void setFlowDescriptor (const FlowDescriptorVector &flowDescriptor_var)
virtual int getRsvpKind () const
virtual void setRsvpKind (int rsvpKind_var)

Protected Member Functions

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

Protected Attributes

RsvpHopObj_t hop_var
FlowDescriptorVector flowDescriptor_var
int rsvpKind_var


Constructor & Destructor Documentation

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

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

virtual RSVPResvMsg_Base::~RSVPResvMsg_Base (  )  [virtual]


Member Function Documentation

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

Reimplemented from RSVPPacket_Base.

Reimplemented in RSVPResvMsg.

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

virtual const FlowDescriptorVector& RSVPResvMsg_Base::getFlowDescriptor (  )  const [inline, virtual]

00084 {return const_cast<RSVPResvMsg_Base*>(this)->getFlowDescriptor();}

virtual FlowDescriptorVector& RSVPResvMsg_Base::getFlowDescriptor (  )  [virtual]

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

00081 {return const_cast<RSVPResvMsg_Base*>(this)->getHop();}

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

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

Reimplemented from RSVPMessage.

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

Reimplemented from RSVPPacket_Base.

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

Reimplemented from RSVPPacket_Base.

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

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

virtual void RSVPResvMsg_Base::setFlowDescriptor ( const FlowDescriptorVector flowDescriptor_var  )  [virtual]

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

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

Reimplemented from RSVPMessage.


Member Data Documentation

FlowDescriptorVector RSVPResvMsg_Base::flowDescriptor_var [protected]

RsvpHopObj_t RSVPResvMsg_Base::hop_var [protected]

int RSVPResvMsg_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