RSVPPathTear_Base Class Reference

#include <RSVPPathMsg_m.h>

Inheritance diagram for RSVPPathTear_Base:

RSVPPacket RSVPPacket_Base RSVPMessage RSVPPathTear List of all members.

Detailed Description

Class generated from RSVPPathMsg.msg by opp_msgc.
 message RSVPPathTear extends RSVPPacket
 {
     properties:
         customize=true;
     fields:
         RsvpHopObj_t hop;
         SenderTemplateObj_t senderTemplate;
         bool force;
         int rsvpKind = PTEAR_MESSAGE;
 };
 

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

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

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

 Register_Class(RSVPPathTear);
 


Public Member Functions

virtual ~RSVPPathTear_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 SenderTemplateObj_tgetSenderTemplate ()
virtual const SenderTemplateObj_tgetSenderTemplate () const
virtual void setSenderTemplate (const SenderTemplateObj_t &senderTemplate_var)
virtual bool getForce () const
virtual void setForce (bool force_var)
virtual int getRsvpKind () const
virtual void setRsvpKind (int rsvpKind_var)

Protected Member Functions

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

Protected Attributes

RsvpHopObj_t hop_var
SenderTemplateObj_t senderTemplate_var
bool force_var
int rsvpKind_var


Constructor & Destructor Documentation

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

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

virtual RSVPPathTear_Base::~RSVPPathTear_Base (  )  [virtual]


Member Function Documentation

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

Reimplemented from RSVPPacket_Base.

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

virtual bool RSVPPathTear_Base::getForce (  )  const [virtual]

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

00165 {return const_cast<RSVPPathTear_Base*>(this)->getHop();}

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

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

Reimplemented from RSVPMessage.

virtual const SenderTemplateObj_t& RSVPPathTear_Base::getSenderTemplate (  )  const [inline, virtual]

00168 {return const_cast<RSVPPathTear_Base*>(this)->getSenderTemplate();}

virtual SenderTemplateObj_t& RSVPPathTear_Base::getSenderTemplate (  )  [virtual]

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

Reimplemented from RSVPPacket_Base.

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

Reimplemented from RSVPPacket_Base.

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

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

virtual void RSVPPathTear_Base::setForce ( bool  force_var  )  [virtual]

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

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

Reimplemented from RSVPMessage.

virtual void RSVPPathTear_Base::setSenderTemplate ( const SenderTemplateObj_t senderTemplate_var  )  [virtual]


Member Data Documentation

bool RSVPPathTear_Base::force_var [protected]

RsvpHopObj_t RSVPPathTear_Base::hop_var [protected]

int RSVPPathTear_Base::rsvpKind_var [protected]

Reimplemented from RSVPMessage.

SenderTemplateObj_t RSVPPathTear_Base::senderTemplate_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