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

Class generated from inet/networklayer/rsvp_te/RSVPPacket.msg:65 by nedtool. More...

#include <RSVPPacket_m.h>

Inheritance diagram for inet::RSVPPacket_Base:
inet::RSVPMessage inet::RSVPPacket inet::RSVPPathError_Base inet::RSVPPathMsg_Base inet::RSVPPathTear_Base inet::RSVPResvError_Base inet::RSVPResvMsg_Base inet::RSVPResvTear_Base inet::RSVPPathError inet::RSVPPathMsg inet::RSVPPathTear inet::RSVPResvError inet::RSVPResvMsg inet::RSVPResvTear

Public Member Functions

virtual ~RSVPPacket_Base ()
 
virtual RSVPPacket_Basedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
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 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

SessionObj_t session
 
bool checksumValid
 
- Protected Attributes inherited from inet::RSVPMessage
int rsvpKind
 

Private Member Functions

void copy (const RSVPPacket_Base &other)
 

Detailed Description

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)

Constructor & Destructor Documentation

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

Member Function Documentation

void inet::RSVPPacket_Base::copy ( const RSVPPacket_Base other)
private
virtual RSVPPacket_Base* inet::RSVPPacket_Base::dup ( ) const
inlineoverridevirtual
virtual bool inet::RSVPPacket_Base::getChecksumValid ( ) const
virtual
virtual const SessionObj_t& inet::RSVPPacket_Base::getSession ( ) const
inlinevirtual

Referenced by getSession().

150 {return const_cast<RSVPPacket_Base*>(this)->getSession();}
virtual SessionObj_t & getSession()
RSVPPacket_Base(const char *name=nullptr, short kind=0)
RSVPPacket_Base& inet::RSVPPacket_Base::operator= ( const RSVPPacket_Base other)
protected
bool inet::RSVPPacket_Base::operator== ( const RSVPPacket_Base )
protected
virtual void inet::RSVPPacket_Base::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual
virtual void inet::RSVPPacket_Base::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual
virtual void inet::RSVPPacket_Base::setChecksumValid ( bool  checksumValid)
virtual
virtual void inet::RSVPPacket_Base::setSession ( const SessionObj_t session)
virtual

Member Data Documentation

bool inet::RSVPPacket_Base::checksumValid
protected
SessionObj_t inet::RSVPPacket_Base::session
protected

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