INET Framework for OMNeT++/OMNEST
RSVPResvTear_Base Class Reference

#include <RSVPResvMsg_m.h>

Inheritance diagram for RSVPResvTear_Base:
RSVPPacket RSVPPacket_Base RSVPMessage RSVPResvTear

List of all members.

Public Member Functions

virtual ~RSVPResvTear_Base ()
virtual RSVPResvTear_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 FlowDescriptorVectorgetFlowDescriptor ()
virtual const
FlowDescriptorVector
getFlowDescriptor () const
virtual void setFlowDescriptor (const FlowDescriptorVector &flowDescriptor)
virtual int getRsvpKind () const
virtual void setRsvpKind (int rsvpKind)

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

Private Member Functions

void copy (const RSVPResvTear_Base &other)

Detailed Description

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

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

Definition at line 131 of file RSVPResvMsg_m.h.


Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from RSVPPacket.

Reimplemented in RSVPResvTear.

Definition at line 152 of file RSVPResvMsg_m.h.

{throw cRuntimeError("You forgot to manually add a dup() function to class RSVPResvTear");}
virtual const FlowDescriptorVector& RSVPResvTear_Base::getFlowDescriptor ( ) const [inline, virtual]

Definition at line 161 of file RSVPResvMsg_m.h.

Referenced by getFlowDescriptor().

{return const_cast<RSVPResvTear_Base*>(this)->getFlowDescriptor();}
virtual const RsvpHopObj_t& RSVPResvTear_Base::getHop ( ) const [inline, virtual]

Definition at line 158 of file RSVPResvMsg_m.h.

Referenced by getHop().

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

Reimplemented from RSVPMessage.

RSVPResvTear_Base& RSVPResvTear_Base::operator= ( const RSVPResvTear_Base other) [protected]
bool RSVPResvTear_Base::operator== ( const RSVPResvTear_Base ) [protected]
virtual void RSVPResvTear_Base::parsimPack ( cCommBuffer *  b) [virtual]

Reimplemented from RSVPPacket_Base.

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

Reimplemented from RSVPPacket_Base.

virtual void RSVPResvTear_Base::setFlowDescriptor ( const FlowDescriptorVector flowDescriptor) [virtual]
virtual void RSVPResvTear_Base::setHop ( const RsvpHopObj_t hop) [virtual]
virtual void RSVPResvTear_Base::setRsvpKind ( int  rsvpKind) [virtual]

Reimplemented from RSVPMessage.


Member Data Documentation

Definition at line 134 of file RSVPResvMsg_m.h.

Reimplemented from RSVPMessage.

Definition at line 136 of file RSVPResvMsg_m.h.


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