INET Framework for OMNeT++/OMNEST
|
Class generated from inet/networklayer/rsvp_te/RSVPPacket.msg:65
by nedtool.
More...
#include <RSVPPacket_m.h>
Public Member Functions | |
virtual | ~RSVPPacket_Base () |
virtual RSVPPacket_Base * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
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=nullptr, short kind=0) | |
RSVPPacket_Base (const RSVPPacket_Base &other) | |
RSVPPacket_Base & | operator= (const RSVPPacket_Base &other) |
Protected Attributes | |
SessionObj_t | session |
bool | checksumValid |
Private Member Functions | |
void | copy (const RSVPPacket_Base &other) |
Class generated from inet/networklayer/rsvp_te/RSVPPacket.msg:65
by nedtool.
// // FIXME missing documentation // packet RSVPPacket extends RSVPMessage { @customize(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 INET_API RSVPPacket : public RSVPPacket_Base { private: void copy(const RSVPPacket& other) { ... }
public: RSVPPacket(const char *name=nullptr, short 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 override {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)
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented from inet::RSVPMessage.
Reimplemented in inet::RSVPPathError_Base, inet::RSVPResvError_Base, inet::RSVPPathTear_Base, inet::RSVPResvTear_Base, inet::RSVPPathMsg_Base, inet::RSVPResvMsg_Base, inet::RSVPPathError, inet::RSVPResvError, inet::RSVPPathTear, inet::RSVPResvTear, inet::RSVPPacket, inet::RSVPPathMsg, and inet::RSVPResvMsg.
|
virtual |
|
virtual |
|
inlinevirtual |
Referenced by getSession().
|
protected |
Referenced by inet::RSVPPacket::operator=().
|
protected |
|
overridevirtual |
Reimplemented from inet::RSVPMessage.
Reimplemented in inet::RSVPPathError_Base, inet::RSVPResvError_Base, inet::RSVPPathTear_Base, inet::RSVPResvTear_Base, inet::RSVPPathMsg_Base, and inet::RSVPResvMsg_Base.
|
overridevirtual |
Reimplemented from inet::RSVPMessage.
Reimplemented in inet::RSVPPathError_Base, inet::RSVPResvError_Base, inet::RSVPPathTear_Base, inet::RSVPResvTear_Base, inet::RSVPPathMsg_Base, and inet::RSVPResvMsg_Base.
|
virtual |
|
virtual |
Referenced by inet::RSVP::refreshResv(), inet::RSVP::sendPathErrorMessage(), and inet::RSVP::sendPathTearMessage().
|
protected |
|
protected |