INET Framework for OMNeT++/OMNEST
|
Class generated from inet/networklayer/rsvp_te/RSVPHello.msg:30
by nedtool.
More...
#include <RSVPHello_m.h>
Public Member Functions | |
virtual | ~RSVPHelloMsg_Base () |
virtual RSVPHelloMsg_Base * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
virtual bool | getRequest () const |
virtual void | setRequest (bool request) |
virtual bool | getAck () const |
virtual void | setAck (bool ack) |
virtual int | getSrcInstance () const |
virtual void | setSrcInstance (int srcInstance) |
virtual int | getDstInstance () const |
virtual void | setDstInstance (int dstInstance) |
Protected Member Functions | |
bool | operator== (const RSVPHelloMsg_Base &) |
RSVPHelloMsg_Base (const char *name=nullptr, short kind=0) | |
RSVPHelloMsg_Base (const RSVPHelloMsg_Base &other) | |
RSVPHelloMsg_Base & | operator= (const RSVPHelloMsg_Base &other) |
Protected Attributes | |
bool | request |
bool | ack |
int | srcInstance |
int | dstInstance |
Private Member Functions | |
void | copy (const RSVPHelloMsg_Base &other) |
Class generated from inet/networklayer/rsvp_te/RSVPHello.msg:30
by nedtool.
// // FIXME missing documentation // packet RSVPHelloMsg extends RSVPMessage { @customize(true); bool request; bool ack;
int srcInstance; int dstInstance;
rsvpKind = HELLO_MESSAGE; }
RSVPHelloMsg_Base is only useful if it gets subclassed, and RSVPHelloMsg is derived from it. The minimum code to be written for RSVPHelloMsg is the following:
class INET_API RSVPHelloMsg : public RSVPHelloMsg_Base { private: void copy(const RSVPHelloMsg& other) { ... }
public: RSVPHelloMsg(const char *name=nullptr, short kind=0) : RSVPHelloMsg_Base(name,kind) {} RSVPHelloMsg(const RSVPHelloMsg& other) : RSVPHelloMsg_Base(other) {copy(other);} RSVPHelloMsg& operator=(const RSVPHelloMsg& other) {if (this==&other) return *this; RSVPHelloMsg_Base::operator=(other); copy(other); return *this;} virtual RSVPHelloMsg *dup() const override {return new RSVPHelloMsg(*this);} // ADD CODE HERE to redefine and implement pure virtual functions from RSVPHelloMsg_Base };
The following should go into a .cc (.cpp) file:
Register_Class(RSVPHelloMsg)
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented from inet::RSVPMessage.
Reimplemented in inet::RSVPHelloMsg.
|
virtual |
Referenced by inet::RSVP::processHelloMsg().
|
virtual |
Referenced by inet::RSVP::processHelloMsg().
|
virtual |
Referenced by inet::RSVP::processHelloMsg().
|
virtual |
Referenced by inet::RSVP::processHelloMsg().
|
protected |
Referenced by inet::RSVPHelloMsg::operator=().
|
protected |
|
overridevirtual |
Reimplemented from inet::RSVPMessage.
|
overridevirtual |
Reimplemented from inet::RSVPMessage.
|
virtual |
Referenced by inet::RSVP::processHELLO_TIMER().
|
virtual |
Referenced by inet::RSVP::processHELLO_TIMER().
|
virtual |
Referenced by inet::RSVP::processHELLO_TIMER().
|
virtual |
Referenced by inet::RSVP::processHELLO_TIMER().
|
protected |
|
protected |
|
protected |
|
protected |