INET Framework for OMNeT++/OMNEST
RSVPResvMsg_Base Class Reference

#include <RSVPResvMsg_m.h>

Inheritance diagram for RSVPResvMsg_Base:
RSVPPacket RSVPPacket_Base RSVPMessage RSVPResvMsg

List of all members.

Public Member Functions

virtual ~RSVPResvMsg_Base ()
virtual RSVPResvMsg_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 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

Private Member Functions

void copy (const RSVPResvMsg_Base &other)

Detailed Description

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

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

Definition at line 59 of file RSVPResvMsg_m.h.


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

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

Reimplemented from RSVPPacket.

Reimplemented in RSVPResvMsg.

Definition at line 80 of file RSVPResvMsg_m.h.

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

Definition at line 89 of file RSVPResvMsg_m.h.

Referenced by getFlowDescriptor().

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

Definition at line 86 of file RSVPResvMsg_m.h.

Referenced by getHop().

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

Reimplemented from RSVPMessage.

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

Reimplemented from RSVPPacket_Base.

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

Reimplemented from RSVPPacket_Base.

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

Referenced by RSVP::refreshResv().

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

Referenced by RSVP::refreshResv().

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

Reimplemented from RSVPMessage.


Member Data Documentation

Definition at line 62 of file RSVPResvMsg_m.h.

Reimplemented from RSVPMessage.

Definition at line 64 of file RSVPResvMsg_m.h.


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