INET Framework for OMNeT++/OMNEST
inet::RSVPHelloMsg_Base Class Reference

Class generated from inet/networklayer/rsvp_te/RSVPHello.msg:30 by nedtool. More...

#include <RSVPHello_m.h>

Inheritance diagram for inet::RSVPHelloMsg_Base:
inet::RSVPMessage inet::RSVPHelloMsg

Public Member Functions

virtual ~RSVPHelloMsg_Base ()
 
virtual RSVPHelloMsg_Basedup () 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)
 
- Public Member Functions inherited from inet::RSVPMessage
 RSVPMessage (const char *name=nullptr, short kind=0)
 
 RSVPMessage (const RSVPMessage &other)
 
virtual ~RSVPMessage ()
 
RSVPMessageoperator= (const RSVPMessage &other)
 
virtual int getRsvpKind () const
 
virtual void setRsvpKind (int rsvpKind)
 

Protected Member Functions

bool operator== (const RSVPHelloMsg_Base &)
 
 RSVPHelloMsg_Base (const char *name=nullptr, short kind=0)
 
 RSVPHelloMsg_Base (const RSVPHelloMsg_Base &other)
 
RSVPHelloMsg_Baseoperator= (const RSVPHelloMsg_Base &other)
 
- Protected Member Functions inherited from inet::RSVPMessage
bool operator== (const RSVPMessage &)
 

Protected Attributes

bool request
 
bool ack
 
int srcInstance
 
int dstInstance
 
- Protected Attributes inherited from inet::RSVPMessage
int rsvpKind
 

Private Member Functions

void copy (const RSVPHelloMsg_Base &other)
 

Detailed Description

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)

Constructor & Destructor Documentation

inet::RSVPHelloMsg_Base::RSVPHelloMsg_Base ( const char *  name = nullptr,
short  kind = 0 
)
protected
inet::RSVPHelloMsg_Base::RSVPHelloMsg_Base ( const RSVPHelloMsg_Base other)
protected
virtual inet::RSVPHelloMsg_Base::~RSVPHelloMsg_Base ( )
virtual

Member Function Documentation

void inet::RSVPHelloMsg_Base::copy ( const RSVPHelloMsg_Base other)
private
virtual RSVPHelloMsg_Base* inet::RSVPHelloMsg_Base::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::RSVPMessage.

Reimplemented in inet::RSVPHelloMsg.

102 {throw omnetpp::cRuntimeError("You forgot to manually add a dup() function to class RSVPHelloMsg");}
virtual bool inet::RSVPHelloMsg_Base::getAck ( ) const
virtual
virtual int inet::RSVPHelloMsg_Base::getDstInstance ( ) const
virtual
virtual bool inet::RSVPHelloMsg_Base::getRequest ( ) const
virtual
virtual int inet::RSVPHelloMsg_Base::getSrcInstance ( ) const
virtual
RSVPHelloMsg_Base& inet::RSVPHelloMsg_Base::operator= ( const RSVPHelloMsg_Base other)
protected
bool inet::RSVPHelloMsg_Base::operator== ( const RSVPHelloMsg_Base )
protected
virtual void inet::RSVPHelloMsg_Base::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::RSVPMessage.

virtual void inet::RSVPHelloMsg_Base::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

Reimplemented from inet::RSVPMessage.

virtual void inet::RSVPHelloMsg_Base::setAck ( bool  ack)
virtual
virtual void inet::RSVPHelloMsg_Base::setDstInstance ( int  dstInstance)
virtual
virtual void inet::RSVPHelloMsg_Base::setRequest ( bool  request)
virtual
virtual void inet::RSVPHelloMsg_Base::setSrcInstance ( int  srcInstance)
virtual

Member Data Documentation

bool inet::RSVPHelloMsg_Base::ack
protected
int inet::RSVPHelloMsg_Base::dstInstance
protected
bool inet::RSVPHelloMsg_Base::request
protected
int inet::RSVPHelloMsg_Base::srcInstance
protected

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