|
INET Framework for OMNeT++/OMNEST
|
#include <RSVPPathMsg_m.h>
Public Member Functions | |
| virtual | ~RSVPPathError_Base () |
| virtual RSVPPathError_Base * | dup () const |
| virtual void | parsimPack (cCommBuffer *b) |
| virtual void | parsimUnpack (cCommBuffer *b) |
| virtual IPAddress & | getErrorNode () |
| virtual const IPAddress & | getErrorNode () const |
| virtual void | setErrorNode (const IPAddress &errorNode) |
| virtual int | getErrorCode () const |
| virtual void | setErrorCode (int errorCode) |
| virtual SenderDescriptor_t & | getSender_descriptor () |
| virtual const SenderDescriptor_t & | getSender_descriptor () const |
| virtual void | setSender_descriptor (const SenderDescriptor_t &sender_descriptor) |
| virtual int | getRsvpKind () const |
| virtual void | setRsvpKind (int rsvpKind) |
Protected Member Functions | |
| bool | operator== (const RSVPPathError_Base &) |
| RSVPPathError_Base (const char *name=NULL, int kind=0) | |
| RSVPPathError_Base (const RSVPPathError_Base &other) | |
| RSVPPathError_Base & | operator= (const RSVPPathError_Base &other) |
Protected Attributes | |
| IPAddress | errorNode_var |
| int | errorCode_var |
| SenderDescriptor_t | sender_descriptor_var |
| int | rsvpKind_var |
Private Member Functions | |
| void | copy (const RSVPPathError_Base &other) |
Class generated from networklayer/rsvp_te/RSVPPathMsg.msg by opp_msgc.
packet RSVPPathError extends RSVPPacket { (true); IPAddress errorNode; int errorCode; SenderDescriptor_t sender_descriptor;
int 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 RSVPPathError : public RSVPPathError_Base { private: void copy(const RSVPPathError& other) { ... }
public:
RSVPPathError(const char *name=NULL, int 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 {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);
Definition at line 224 of file RSVPPathMsg_m.h.
| RSVPPathError_Base::RSVPPathError_Base | ( | const char * | name = NULL, |
| int | kind = 0 |
||
| ) | [protected] |
| RSVPPathError_Base::RSVPPathError_Base | ( | const RSVPPathError_Base & | other | ) | [protected] |
| virtual RSVPPathError_Base::~RSVPPathError_Base | ( | ) | [virtual] |
| void RSVPPathError_Base::copy | ( | const RSVPPathError_Base & | other | ) | [private] |
| virtual RSVPPathError_Base* RSVPPathError_Base::dup | ( | ) | const [inline, virtual] |
Reimplemented from RSVPPacket.
Reimplemented in RSVPPathError.
Definition at line 246 of file RSVPPathMsg_m.h.
{throw cRuntimeError("You forgot to manually add a dup() function to class RSVPPathError");}
| virtual int RSVPPathError_Base::getErrorCode | ( | ) | const [virtual] |
Referenced by RSVP::processPathErrMsg().
| virtual IPAddress& RSVPPathError_Base::getErrorNode | ( | ) | [virtual] |
| virtual const IPAddress& RSVPPathError_Base::getErrorNode | ( | ) | const [inline, virtual] |
Definition at line 252 of file RSVPPathMsg_m.h.
Referenced by getErrorNode().
{return const_cast<RSVPPathError_Base*>(this)->getErrorNode();}
| virtual int RSVPPathError_Base::getRsvpKind | ( | ) | const [virtual] |
Reimplemented from RSVPMessage.
| virtual SenderDescriptor_t& RSVPPathError_Base::getSender_descriptor | ( | ) | [virtual] |
| virtual const SenderDescriptor_t& RSVPPathError_Base::getSender_descriptor | ( | ) | const [inline, virtual] |
Definition at line 257 of file RSVPPathMsg_m.h.
Referenced by getSender_descriptor().
{return const_cast<RSVPPathError_Base*>(this)->getSender_descriptor();}
| RSVPPathError_Base& RSVPPathError_Base::operator= | ( | const RSVPPathError_Base & | other | ) | [protected] |
| bool RSVPPathError_Base::operator== | ( | const RSVPPathError_Base & | ) | [protected] |
| virtual void RSVPPathError_Base::parsimPack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
| virtual void RSVPPathError_Base::parsimUnpack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
| virtual void RSVPPathError_Base::setErrorCode | ( | int | errorCode | ) | [virtual] |
Referenced by RSVP::sendPathErrorMessage().
| virtual void RSVPPathError_Base::setErrorNode | ( | const IPAddress & | errorNode | ) | [virtual] |
Referenced by RSVP::sendPathErrorMessage().
| virtual void RSVPPathError_Base::setRsvpKind | ( | int | rsvpKind | ) | [virtual] |
Reimplemented from RSVPMessage.
| virtual void RSVPPathError_Base::setSender_descriptor | ( | const SenderDescriptor_t & | sender_descriptor | ) | [virtual] |
int RSVPPathError_Base::errorCode_var [protected] |
Definition at line 228 of file RSVPPathMsg_m.h.
IPAddress RSVPPathError_Base::errorNode_var [protected] |
Definition at line 227 of file RSVPPathMsg_m.h.
int RSVPPathError_Base::rsvpKind_var [protected] |
Reimplemented from RSVPMessage.
Definition at line 230 of file RSVPPathMsg_m.h.
Definition at line 229 of file RSVPPathMsg_m.h.