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.

Detailed Description

Class generated from RSVPPacket.msg by opp_msgc.
 message RSVPPacket extends RSVPMessage
 {
     properties:
         customize=true;
     fields:
         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
 {
   public:
     RSVPPacket(const char *name=NULL, int kind=0) : RSVPPacket_Base(name,kind) {}
     RSVPPacket(const RSVPPacket& other) : RSVPPacket_Base(other.name()) {operator=(other);}
     RSVPPacket& operator=(const RSVPPacket& other) {RSVPPacket_Base::operator=(other); return *this;}
     virtual cPolymorphic *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);
 


Public Member Functions

virtual ~RSVPPacket_Base ()
virtual cPolymorphic * dup () const
virtual void netPack (cCommBuffer *b)
virtual void netUnpack (cCommBuffer *b)
virtual SessionObj_tgetSession ()
virtual const SessionObj_tgetSession () const
virtual void setSession (const SessionObj_t &session_var)
virtual bool getChecksumValid () const
virtual void setChecksumValid (bool checksumValid_var)

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


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

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

Reimplemented from RSVPMessage.

Reimplemented in RSVPPathMsg_Base, RSVPPathTear_Base, RSVPPathError_Base, RSVPResvMsg, RSVPResvTear, RSVPResvMsg_Base, RSVPResvTear_Base, and RSVPResvError_Base.

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

00121 {return const_cast<RSVPPacket_Base*>(this)->getSession();}

virtual SessionObj_t& RSVPPacket_Base::getSession (  )  [virtual]

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

Reimplemented from RSVPMessage.

Reimplemented in RSVPPathMsg_Base, RSVPPathTear_Base, RSVPPathError_Base, RSVPResvMsg_Base, RSVPResvTear_Base, and RSVPResvError_Base.

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

Reimplemented from RSVPMessage.

Reimplemented in RSVPPathMsg_Base, RSVPPathTear_Base, RSVPPathError_Base, RSVPResvMsg_Base, RSVPResvTear_Base, and RSVPResvError_Base.

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

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

virtual void RSVPPacket_Base::setChecksumValid ( bool  checksumValid_var  )  [virtual]

virtual void RSVPPacket_Base::setSession ( const SessionObj_t session_var  )  [virtual]


Member Data Documentation

bool RSVPPacket_Base::checksumValid_var [protected]

SessionObj_t RSVPPacket_Base::session_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