INET Framework for OMNeT++/OMNEST
RSVPPacket_Base Class Reference

#include <RSVPPacket_m.h>

Inheritance diagram for RSVPPacket_Base:
RSVPMessage RSVPPacket RSVPPathError_Base RSVPPathMsg_Base RSVPPathTear_Base RSVPResvError_Base RSVPResvMsg_Base RSVPResvTear_Base RSVPPathError RSVPPathMsg RSVPPathTear RSVPResvError RSVPResvMsg RSVPResvTear

List of all members.

Public Member Functions

virtual ~RSVPPacket_Base ()
virtual RSVPPacket_Basedup () const
virtual void parsimPack (cCommBuffer *b)
virtual void parsimUnpack (cCommBuffer *b)
virtual SessionObj_tgetSession ()
virtual const SessionObj_tgetSession () const
virtual void setSession (const SessionObj_t &session)
virtual bool getChecksumValid () const
virtual void setChecksumValid (bool checksumValid)

Protected Member Functions

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

Protected Attributes

SessionObj_t session_var
bool checksumValid_var

Private Member Functions

void copy (const RSVPPacket_Base &other)

Detailed Description

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

 packet RSVPPacket extends RSVPMessage
 {
     (true);
     SessionObj_t session;
     bool checksumValid = true;
 }
 

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

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

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

 Register_Class(RSVPPacket);
 

Definition at line 103 of file RSVPPacket_m.h.


Constructor & Destructor Documentation

RSVPPacket_Base::RSVPPacket_Base ( const char *  name = NULL,
int  kind = 0 
) [protected]
RSVPPacket_Base::RSVPPacket_Base ( const RSVPPacket_Base other) [protected]
virtual RSVPPacket_Base::~RSVPPacket_Base ( ) [virtual]

Member Function Documentation

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

Reimplemented from RSVPMessage.

Reimplemented in RSVPPathError_Base, RSVPResvError_Base, RSVPPathTear_Base, RSVPResvTear_Base, RSVPPathMsg_Base, RSVPPathError, RSVPResvMsg_Base, RSVPResvError, RSVPPathTear, RSVPResvTear, RSVPPacket, RSVPPathMsg, and RSVPResvMsg.

Definition at line 123 of file RSVPPacket_m.h.

{throw cRuntimeError("You forgot to manually add a dup() function to class RSVPPacket");}
virtual bool RSVPPacket_Base::getChecksumValid ( ) const [virtual]
virtual const SessionObj_t& RSVPPacket_Base::getSession ( ) const [inline, virtual]

Definition at line 129 of file RSVPPacket_m.h.

Referenced by getSession().

{return const_cast<RSVPPacket_Base*>(this)->getSession();}
RSVPPacket_Base& RSVPPacket_Base::operator= ( const RSVPPacket_Base other) [protected]
bool RSVPPacket_Base::operator== ( const RSVPPacket_Base ) [protected]
virtual void RSVPPacket_Base::parsimPack ( cCommBuffer *  b) [virtual]
virtual void RSVPPacket_Base::parsimUnpack ( cCommBuffer *  b) [virtual]
virtual void RSVPPacket_Base::setChecksumValid ( bool  checksumValid) [virtual]

Member Data Documentation

Definition at line 107 of file RSVPPacket_m.h.

Definition at line 106 of file RSVPPacket_m.h.


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