#include <RSVPResvMsg_m.h>
Inheritance diagram for RSVPResvError_Base:
RSVPResvMsg.msg
by opp_msgc. message RSVPResvError extends RSVPPacket { properties: customize=true; fields: RsvpHopObj_t hop; IPAddress errorNode; int errorCode; int 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 RSVPResvError : public RSVPResvError_Base { public: RSVPResvError(const char *name=NULL, int kind=0) : RSVPResvError_Base(name,kind) {} RSVPResvError(const RSVPResvError& other) : RSVPResvError_Base(other.name()) {operator=(other);} RSVPResvError& operator=(const RSVPResvError& other) {RSVPResvError_Base::operator=(other); return *this;} virtual cPolymorphic *dup() const {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);
Public Member Functions | |
virtual | ~RSVPResvError_Base () |
virtual cPolymorphic * | dup () const |
virtual void | netPack (cCommBuffer *b) |
virtual void | netUnpack (cCommBuffer *b) |
virtual RsvpHopObj_t & | getHop () |
virtual const RsvpHopObj_t & | getHop () const |
virtual void | setHop (const RsvpHopObj_t &hop_var) |
virtual IPAddress & | getErrorNode () |
virtual const IPAddress & | getErrorNode () const |
virtual void | setErrorNode (const IPAddress &errorNode_var) |
virtual int | getErrorCode () const |
virtual void | setErrorCode (int errorCode_var) |
virtual int | getRsvpKind () const |
virtual void | setRsvpKind (int rsvpKind_var) |
Protected Member Functions | |
bool | operator== (const RSVPResvError_Base &) |
RSVPResvError_Base (const char *name=NULL, int kind=0) | |
RSVPResvError_Base (const RSVPResvError_Base &other) | |
RSVPResvError_Base & | operator= (const RSVPResvError_Base &other) |
Protected Attributes | |
RsvpHopObj_t | hop_var |
IPAddress | errorNode_var |
int | errorCode_var |
int | rsvpKind_var |
RSVPResvError_Base::RSVPResvError_Base | ( | const char * | name = NULL , |
|
int | kind = 0 | |||
) | [protected] |
RSVPResvError_Base::RSVPResvError_Base | ( | const RSVPResvError_Base & | other | ) | [protected] |
virtual RSVPResvError_Base::~RSVPResvError_Base | ( | ) | [virtual] |
virtual cPolymorphic* RSVPResvError_Base::dup | ( | ) | const [inline, virtual] |
Reimplemented from RSVPPacket_Base.
00211 {throw new cRuntimeError("You forgot to manually add a dup() function to class RSVPResvError");}
virtual int RSVPResvError_Base::getErrorCode | ( | ) | const [virtual] |
virtual const IPAddress& RSVPResvError_Base::getErrorNode | ( | ) | const [inline, virtual] |
virtual IPAddress& RSVPResvError_Base::getErrorNode | ( | ) | [virtual] |
virtual const RsvpHopObj_t& RSVPResvError_Base::getHop | ( | ) | const [inline, virtual] |
virtual RsvpHopObj_t& RSVPResvError_Base::getHop | ( | ) | [virtual] |
virtual int RSVPResvError_Base::getRsvpKind | ( | ) | const [virtual] |
Reimplemented from RSVPMessage.
virtual void RSVPResvError_Base::netPack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
virtual void RSVPResvError_Base::netUnpack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
RSVPResvError_Base& RSVPResvError_Base::operator= | ( | const RSVPResvError_Base & | other | ) | [protected] |
bool RSVPResvError_Base::operator== | ( | const RSVPResvError_Base & | ) | [protected] |
virtual void RSVPResvError_Base::setErrorCode | ( | int | errorCode_var | ) | [virtual] |
virtual void RSVPResvError_Base::setErrorNode | ( | const IPAddress & | errorNode_var | ) | [virtual] |
virtual void RSVPResvError_Base::setHop | ( | const RsvpHopObj_t & | hop_var | ) | [virtual] |
virtual void RSVPResvError_Base::setRsvpKind | ( | int | rsvpKind_var | ) | [virtual] |
Reimplemented from RSVPMessage.
int RSVPResvError_Base::errorCode_var [protected] |
IPAddress RSVPResvError_Base::errorNode_var [protected] |
RsvpHopObj_t RSVPResvError_Base::hop_var [protected] |
int RSVPResvError_Base::rsvpKind_var [protected] |
Reimplemented from RSVPMessage.