|
INET Framework for OMNeT++/OMNEST
|
#include <RSVPPacket_m.h>
Public Member Functions | |
| virtual | ~RSVPPacket_Base () |
| virtual RSVPPacket_Base * | dup () const |
| virtual void | parsimPack (cCommBuffer *b) |
| virtual void | parsimUnpack (cCommBuffer *b) |
| virtual SessionObj_t & | getSession () |
| virtual const SessionObj_t & | getSession () 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_Base & | operator= (const RSVPPacket_Base &other) |
Protected Attributes | |
| SessionObj_t | session_var |
| bool | checksumValid_var |
Private Member Functions | |
| void | copy (const RSVPPacket_Base &other) |
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.
| 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] |
| 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 SessionObj_t& RSVPPacket_Base::getSession | ( | ) | [virtual] |
Referenced by RSVP::createPSB(), RSVP::createRSB(), RSVPPacket::getDestAddress(), RSVPPacket::getExTunnelId(), RSVPPacket::getHoldingPri(), RSVPPacket::getSetupPri(), RSVPPacket::getTunnelId(), RSVPPacket::isInSession(), RSVP::processPathErrMsg(), RSVP::processPathMsg(), RSVP::processPathTearMsg(), and RSVP::processResvMsg().
| 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] |
Reimplemented from RSVPMessage.
Reimplemented in RSVPPathError_Base, RSVPResvError_Base, RSVPPathTear_Base, RSVPResvTear_Base, RSVPPathMsg_Base, and RSVPResvMsg_Base.
| virtual void RSVPPacket_Base::parsimUnpack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPMessage.
Reimplemented in RSVPPathError_Base, RSVPResvError_Base, RSVPPathTear_Base, RSVPResvTear_Base, RSVPPathMsg_Base, and RSVPResvMsg_Base.
| virtual void RSVPPacket_Base::setChecksumValid | ( | bool | checksumValid | ) | [virtual] |
| virtual void RSVPPacket_Base::setSession | ( | const SessionObj_t & | session | ) | [virtual] |
Referenced by RSVP::refreshResv(), RSVP::sendPathErrorMessage(), and RSVP::sendPathTearMessage().
bool RSVPPacket_Base::checksumValid_var [protected] |
Definition at line 107 of file RSVPPacket_m.h.
SessionObj_t RSVPPacket_Base::session_var [protected] |
Definition at line 106 of file RSVPPacket_m.h.