#include <RSVPPathMsg_m.h>
Inheritance diagram for RSVPPathError_Base:

RSVPPathMsg.msg by opp_msgc.
message RSVPPathError extends RSVPPacket
{
properties:
customize=true;
fields:
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
{
public:
RSVPPathError(const char *name=NULL, int kind=0) : RSVPPathError_Base(name,kind) {}
RSVPPathError(const RSVPPathError& other) : RSVPPathError_Base(other.name()) {operator=(other);}
RSVPPathError& operator=(const RSVPPathError& other) {RSVPPathError_Base::operator=(other); return *this;}
virtual cPolymorphic *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);
| 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] |
| virtual cPolymorphic* RSVPPathError_Base::dup | ( | ) | const [inline, virtual] |
Reimplemented from RSVPPacket_Base.
00231 {throw new cRuntimeError("You forgot to manually add a dup() function to class RSVPPathError");}
| virtual int RSVPPathError_Base::getErrorCode | ( | ) | const [virtual] |
| virtual const IPAddress& RSVPPathError_Base::getErrorNode | ( | ) | const [inline, virtual] |
| virtual IPAddress& RSVPPathError_Base::getErrorNode | ( | ) | [virtual] |
| virtual int RSVPPathError_Base::getRsvpKind | ( | ) | const [virtual] |
Reimplemented from RSVPMessage.
| virtual const SenderDescriptor_t& RSVPPathError_Base::getSender_descriptor | ( | ) | const [inline, virtual] |
| virtual SenderDescriptor_t& RSVPPathError_Base::getSender_descriptor | ( | ) | [virtual] |
| virtual void RSVPPathError_Base::netPack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
| virtual void RSVPPathError_Base::netUnpack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
| RSVPPathError_Base& RSVPPathError_Base::operator= | ( | const RSVPPathError_Base & | other | ) | [protected] |
| bool RSVPPathError_Base::operator== | ( | const RSVPPathError_Base & | ) | [protected] |
| virtual void RSVPPathError_Base::setErrorCode | ( | int | errorCode_var | ) | [virtual] |
| virtual void RSVPPathError_Base::setErrorNode | ( | const IPAddress & | errorNode_var | ) | [virtual] |
| virtual void RSVPPathError_Base::setRsvpKind | ( | int | rsvpKind_var | ) | [virtual] |
Reimplemented from RSVPMessage.
| virtual void RSVPPathError_Base::setSender_descriptor | ( | const SenderDescriptor_t & | sender_descriptor_var | ) | [virtual] |
int RSVPPathError_Base::errorCode_var [protected] |
IPAddress RSVPPathError_Base::errorNode_var [protected] |
int RSVPPathError_Base::rsvpKind_var [protected] |
Reimplemented from RSVPMessage.
1.4.7