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

Class generated from inet/networklayer/rsvp_te/RSVPPathMsg.msg:72 by nedtool. More...

#include <RSVPPathMsg_m.h>

Inheritance diagram for inet::RSVPPathError_Base:
inet::RSVPPacket inet::RSVPPacket_Base inet::RSVPMessage inet::RSVPPathError

Public Member Functions

virtual ~RSVPPathError_Base ()
 
virtual RSVPPathError_Basedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual IPv4AddressgetErrorNode ()
 
virtual const IPv4AddressgetErrorNode () const
 
virtual void setErrorNode (const IPv4Address &errorNode)
 
virtual int getErrorCode () const
 
virtual void setErrorCode (int errorCode)
 
virtual SenderDescriptor_tgetSender_descriptor ()
 
virtual const SenderDescriptor_tgetSender_descriptor () const
 
virtual void setSender_descriptor (const SenderDescriptor_t &sender_descriptor)
 
- 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 RSVPPathError_Base &)
 
 RSVPPathError_Base (const char *name=nullptr, short kind=0)
 
 RSVPPathError_Base (const RSVPPathError_Base &other)
 
RSVPPathError_Baseoperator= (const RSVPPathError_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

IPv4Address errorNode
 
int errorCode
 
SenderDescriptor_t sender_descriptor
 
- 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 RSVPPathError_Base &other)
 

Detailed Description

Class generated from inet/networklayer/rsvp_te/RSVPPathMsg.msg:72 by nedtool.

//
// FIXME missing documentation
//
packet RSVPPathError extends RSVPPacket
{
    @customize(true);
    IPv4Address errorNode;
    int errorCode;
    SenderDescriptor_t sender_descriptor;
    rsvpKind = PERROR_MESSAGE;
}

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

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

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

Register_Class(RSVPPathError)

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from inet::RSVPPacket.

Reimplemented in inet::RSVPPathError.

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

Referenced by getErrorNode().

269 {return const_cast<RSVPPathError_Base*>(this)->getErrorNode();}
RSVPPathError_Base(const char *name=nullptr, short kind=0)
virtual IPv4Address & getErrorNode()
virtual SenderDescriptor_t& inet::RSVPPathError_Base::getSender_descriptor ( )
virtual
virtual const SenderDescriptor_t& inet::RSVPPathError_Base::getSender_descriptor ( ) const
inlinevirtual

Referenced by getSender_descriptor().

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

Reimplemented from inet::RSVPPacket_Base.

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

Reimplemented from inet::RSVPPacket_Base.

virtual void inet::RSVPPathError_Base::setErrorCode ( int  errorCode)
virtual
virtual void inet::RSVPPathError_Base::setErrorNode ( const IPv4Address errorNode)
virtual
virtual void inet::RSVPPathError_Base::setSender_descriptor ( const SenderDescriptor_t sender_descriptor)
virtual

Member Data Documentation

int inet::RSVPPathError_Base::errorCode
protected
IPv4Address inet::RSVPPathError_Base::errorNode
protected
SenderDescriptor_t inet::RSVPPathError_Base::sender_descriptor
protected

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