INET Framework for OMNeT++/OMNEST
RSVPPathTear_Base Class Reference

#include <RSVPPathMsg_m.h>

Inheritance diagram for RSVPPathTear_Base:
RSVPPacket RSVPPacket_Base RSVPMessage RSVPPathTear

List of all members.

Public Member Functions

virtual ~RSVPPathTear_Base ()
virtual RSVPPathTear_Basedup () const
virtual void parsimPack (cCommBuffer *b)
virtual void parsimUnpack (cCommBuffer *b)
virtual RsvpHopObj_tgetHop ()
virtual const RsvpHopObj_tgetHop () const
virtual void setHop (const RsvpHopObj_t &hop)
virtual SenderTemplateObj_tgetSenderTemplate ()
virtual const SenderTemplateObj_tgetSenderTemplate () const
virtual void setSenderTemplate (const SenderTemplateObj_t &senderTemplate)
virtual bool getForce () const
virtual void setForce (bool force)
virtual int getRsvpKind () const
virtual void setRsvpKind (int rsvpKind)

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

Private Member Functions

void copy (const RSVPPathTear_Base &other)

Detailed Description

Class generated from networklayer/rsvp_te/RSVPPathMsg.msg by opp_msgc.

 packet RSVPPathTear extends RSVPPacket
 {
     (true);
     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
 {
   private:
     void copy(const RSVPPathTear& other) { ... }
   public:
     RSVPPathTear(const char *name=NULL, int kind=0) : RSVPPathTear_Base(name,kind) {}
     RSVPPathTear(const RSVPPathTear& other) : RSVPPathTear_Base(other) {copy(other);}
     RSVPPathTear& operator=(const RSVPPathTear& other) {if (this==&other) return *this; RSVPPathTear_Base::operator=(other); copy(other); return *this;}
     virtual RSVPPathTear *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);
 

Definition at line 147 of file RSVPPathMsg_m.h.


Constructor & Destructor Documentation

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

Member Function Documentation

void RSVPPathTear_Base::copy ( const RSVPPathTear_Base other) [private]
virtual RSVPPathTear_Base* RSVPPathTear_Base::dup ( ) const [inline, virtual]

Reimplemented from RSVPPacket.

Reimplemented in RSVPPathTear.

Definition at line 169 of file RSVPPathMsg_m.h.

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

Definition at line 175 of file RSVPPathMsg_m.h.

Referenced by getHop().

{return const_cast<RSVPPathTear_Base*>(this)->getHop();}
virtual int RSVPPathTear_Base::getRsvpKind ( ) const [virtual]

Reimplemented from RSVPMessage.

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

Definition at line 178 of file RSVPPathMsg_m.h.

Referenced by getSenderTemplate().

{return const_cast<RSVPPathTear_Base*>(this)->getSenderTemplate();}
RSVPPathTear_Base& RSVPPathTear_Base::operator= ( const RSVPPathTear_Base other) [protected]
bool RSVPPathTear_Base::operator== ( const RSVPPathTear_Base ) [protected]
virtual void RSVPPathTear_Base::parsimPack ( cCommBuffer *  b) [virtual]

Reimplemented from RSVPPacket_Base.

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

Reimplemented from RSVPPacket_Base.

virtual void RSVPPathTear_Base::setForce ( bool  force) [virtual]
virtual void RSVPPathTear_Base::setHop ( const RsvpHopObj_t hop) [virtual]
virtual void RSVPPathTear_Base::setRsvpKind ( int  rsvpKind) [virtual]

Reimplemented from RSVPMessage.

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

Member Data Documentation

bool RSVPPathTear_Base::force_var [protected]

Definition at line 152 of file RSVPPathMsg_m.h.

Definition at line 150 of file RSVPPathMsg_m.h.

Reimplemented from RSVPMessage.

Definition at line 153 of file RSVPPathMsg_m.h.


The documentation for this class was generated from the following file: