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

Class generated from inet/networklayer/rsvp_te/RSVPResvMsg.msg:60 by nedtool. More...

#include <RSVPResvMsg_m.h>

Inheritance diagram for inet::RSVPResvError_Base:
inet::RSVPPacket inet::RSVPPacket_Base inet::RSVPMessage inet::RSVPResvError

Public Member Functions

virtual ~RSVPResvError_Base ()
 
virtual RSVPResvError_Basedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual RsvpHopObj_tgetHop ()
 
virtual const RsvpHopObj_tgetHop () const
 
virtual void setHop (const RsvpHopObj_t &hop)
 
virtual IPv4AddressgetErrorNode ()
 
virtual const IPv4AddressgetErrorNode () const
 
virtual void setErrorNode (const IPv4Address &errorNode)
 
virtual int getErrorCode () const
 
virtual void setErrorCode (int errorCode)
 
- Public Member Functions inherited from inet::RSVPPacket
 RSVPPacket (const char *name=nullptr, int kind=0)
 
 RSVPPacket (const RSVPPacket &other)
 
RSVPPacketoperator= (const RSVPPacket &other)
 
IPv4Address getDestAddress ()
 
int getTunnelId ()
 
int getExTunnelId ()
 
int getSetupPri ()
 
int getHoldingPri ()
 
bool isInSession (SessionObj_t *s)
 
- Public Member Functions inherited from inet::RSVPPacket_Base
virtual ~RSVPPacket_Base ()
 
virtual SessionObj_tgetSession ()
 
virtual const SessionObj_tgetSession () const
 
virtual void setSession (const SessionObj_t &session)
 
virtual bool getChecksumValid () const
 
virtual void setChecksumValid (bool checksumValid)
 
- 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 RSVPResvError_Base &)
 
 RSVPResvError_Base (const char *name=nullptr, short kind=0)
 
 RSVPResvError_Base (const RSVPResvError_Base &other)
 
RSVPResvError_Baseoperator= (const RSVPResvError_Base &other)
 
- Protected Member Functions inherited from inet::RSVPPacket_Base
bool operator== (const RSVPPacket_Base &)
 
 RSVPPacket_Base (const char *name=nullptr, short kind=0)
 
 RSVPPacket_Base (const RSVPPacket_Base &other)
 
RSVPPacket_Baseoperator= (const RSVPPacket_Base &other)
 
- Protected Member Functions inherited from inet::RSVPMessage
bool operator== (const RSVPMessage &)
 

Protected Attributes

RsvpHopObj_t hop
 
IPv4Address errorNode
 
int errorCode
 
- Protected Attributes inherited from inet::RSVPPacket_Base
SessionObj_t session
 
bool checksumValid
 
- Protected Attributes inherited from inet::RSVPMessage
int rsvpKind
 

Private Member Functions

void copy (const RSVPResvError_Base &other)
 

Detailed Description

Class generated from inet/networklayer/rsvp_te/RSVPResvMsg.msg:60 by nedtool.

//
// FIXME missing documentation
//
packet RSVPResvError extends RSVPPacket
{
    @customize(true);
    RsvpHopObj_t hop;
    IPv4Address errorNode;
    int errorCode;
    rsvpKind = RERROR_MESSAGE;
}

RSVPResvError_Base is only useful if it gets subclassed, and RSVPResvError is derived from it. The minimum code to be written for RSVPResvError is the following:

class INET_API RSVPResvError : public RSVPResvError_Base
{
  private:
    void copy(const RSVPResvError& other) { ... }
  public:
    RSVPResvError(const char *name=nullptr, short kind=0) : RSVPResvError_Base(name,kind) {}
    RSVPResvError(const RSVPResvError& other) : RSVPResvError_Base(other) {copy(other);}
    RSVPResvError& operator=(const RSVPResvError& other) {if (this==&other) return *this; RSVPResvError_Base::operator=(other); copy(other); return *this;}
    virtual RSVPResvError *dup() const override {return new RSVPResvError(*this);}
    // ADD CODE HERE to redefine and implement pure virtual functions from RSVPResvError_Base
};

The following should go into a .cc (.cpp) file:

Register_Class(RSVPResvError)

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from inet::RSVPPacket.

Reimplemented in inet::RSVPResvError.

243 {throw omnetpp::cRuntimeError("You forgot to manually add a dup() function to class RSVPResvError");}
virtual int inet::RSVPResvError_Base::getErrorCode ( ) const
virtual
virtual IPv4Address& inet::RSVPResvError_Base::getErrorNode ( )
virtual
virtual const IPv4Address& inet::RSVPResvError_Base::getErrorNode ( ) const
inlinevirtual

Referenced by getErrorNode().

252 {return const_cast<RSVPResvError_Base*>(this)->getErrorNode();}
virtual IPv4Address & getErrorNode()
RSVPResvError_Base(const char *name=nullptr, short kind=0)
virtual RsvpHopObj_t& inet::RSVPResvError_Base::getHop ( )
virtual
virtual const RsvpHopObj_t& inet::RSVPResvError_Base::getHop ( ) const
inlinevirtual

Referenced by getHop().

249 {return const_cast<RSVPResvError_Base*>(this)->getHop();}
RSVPResvError_Base(const char *name=nullptr, short kind=0)
virtual RsvpHopObj_t & getHop()
RSVPResvError_Base& inet::RSVPResvError_Base::operator= ( const RSVPResvError_Base other)
protected
bool inet::RSVPResvError_Base::operator== ( const RSVPResvError_Base )
protected
virtual void inet::RSVPResvError_Base::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::RSVPPacket_Base.

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

Reimplemented from inet::RSVPPacket_Base.

virtual void inet::RSVPResvError_Base::setErrorCode ( int  errorCode)
virtual
virtual void inet::RSVPResvError_Base::setErrorNode ( const IPv4Address errorNode)
virtual
virtual void inet::RSVPResvError_Base::setHop ( const RsvpHopObj_t hop)
virtual

Member Data Documentation

int inet::RSVPResvError_Base::errorCode
protected
IPv4Address inet::RSVPResvError_Base::errorNode
protected
RsvpHopObj_t inet::RSVPResvError_Base::hop
protected

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