Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

RSVPResvTear_Base Class Reference

#include <RSVPResvMsg_m.h>

Inheritance diagram for RSVPResvTear_Base:

RSVPPacket RSVPPacket_Base RSVPMessage RSVPResvTear List of all members.

Detailed Description

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

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

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

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

 Register_Class(RSVPResvTear);
 


Public Member Functions

virtual ~RSVPResvTear_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 RSVPResvTear_Base &)
 RSVPResvTear_Base (const char *name=NULL, int kind=0)
 RSVPResvTear_Base (const RSVPResvTear_Base &other)
RSVPResvTear_Baseoperator= (const RSVPResvTear_Base &other)

Protected Attributes

RsvpHopObj_t hop_var
FlowDescriptorVector flowDescriptor_var
int rsvpKind_var


Constructor & Destructor Documentation

RSVPResvTear_Base::RSVPResvTear_Base const char *  name = NULL,
int  kind = 0
[protected]
 

RSVPResvTear_Base::RSVPResvTear_Base const RSVPResvTear_Base other  )  [protected]
 

virtual RSVPResvTear_Base::~RSVPResvTear_Base  )  [virtual]
 


Member Function Documentation

virtual cPolymorphic* RSVPResvTear_Base::dup  )  const [inline, virtual]
 

Reimplemented from RSVPPacket_Base.

Reimplemented in RSVPResvTear.

00142 {throw new cException("You forgot to manually add a dup() function to class RSVPResvTear");}

virtual const FlowDescriptorVector& RSVPResvTear_Base::getFlowDescriptor  )  const [inline, virtual]
 

00151 {return const_cast<RSVPResvTear_Base*>(this)->getFlowDescriptor();}

virtual FlowDescriptorVector& RSVPResvTear_Base::getFlowDescriptor  )  [virtual]
 

virtual const RsvpHopObj_t& RSVPResvTear_Base::getHop  )  const [inline, virtual]
 

00148 {return const_cast<RSVPResvTear_Base*>(this)->getHop();}

virtual RsvpHopObj_t& RSVPResvTear_Base::getHop  )  [virtual]
 

virtual int RSVPResvTear_Base::getRsvpKind  )  const [virtual]
 

Reimplemented from RSVPMessage.

virtual void RSVPResvTear_Base::netPack cCommBuffer *  b  )  [virtual]
 

Reimplemented from RSVPPacket_Base.

virtual void RSVPResvTear_Base::netUnpack cCommBuffer *  b  )  [virtual]
 

Reimplemented from RSVPPacket_Base.

RSVPResvTear_Base& RSVPResvTear_Base::operator= const RSVPResvTear_Base other  )  [protected]
 

bool RSVPResvTear_Base::operator== const RSVPResvTear_Base  )  [protected]
 

virtual void RSVPResvTear_Base::setFlowDescriptor const FlowDescriptorVector flowDescriptor_var  )  [virtual]
 

virtual void RSVPResvTear_Base::setHop const RsvpHopObj_t hop_var  )  [virtual]
 

virtual void RSVPResvTear_Base::setRsvpKind int  rsvpKind_var  )  [virtual]
 

Reimplemented from RSVPMessage.


Member Data Documentation

FlowDescriptorVector RSVPResvTear_Base::flowDescriptor_var [protected]
 

RsvpHopObj_t RSVPResvTear_Base::hop_var [protected]
 

int RSVPResvTear_Base::rsvpKind_var [protected]
 

Reimplemented from RSVPMessage.


The documentation for this class was generated from the following file:
Generated on Thu Oct 19 18:22:29 2006 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.0