RSVPResvError_Base Class Reference
#include <RSVPResvMsg_m.h>
Inheritance diagram for RSVPResvError_Base:
List of all members.
Detailed Description
Class generated from 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);
Constructor & Destructor Documentation
RSVPResvError_Base::RSVPResvError_Base |
( |
const char * |
name = NULL , |
|
|
int |
kind = 0 |
|
) |
[protected] |
|
Member Function Documentation
virtual cPolymorphic* RSVPResvError_Base::dup |
( |
|
) |
const [inline, virtual] |
|
|
Reimplemented from RSVPPacket_Base. 00211 {throw new cException("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] |
|
|
00220 {return const_cast<RSVPResvError_Base*>(this)->getErrorNode();}
|
virtual IPAddress& RSVPResvError_Base::getErrorNode |
( |
|
) |
[virtual] |
|
virtual const RsvpHopObj_t& RSVPResvError_Base::getHop |
( |
|
) |
const [inline, virtual] |
|
|
00217 {return const_cast<RSVPResvError_Base*>(this)->getHop();}
|
virtual RsvpHopObj_t& RSVPResvError_Base::getHop |
( |
|
) |
[virtual] |
|
virtual int RSVPResvError_Base::getRsvpKind |
( |
|
) |
const [virtual] |
|
virtual void RSVPResvError_Base::netPack |
( |
cCommBuffer * |
b |
) |
[virtual] |
|
virtual void RSVPResvError_Base::netUnpack |
( |
cCommBuffer * |
b |
) |
[virtual] |
|
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] |
|
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Thu Oct 19 18:22:29 2006 for INET Framework for OMNeT++/OMNEST by
1.4.0