RSVPResvTear_Base Class Reference
#include <RSVPResvMsg_m.h>
Inheritance diagram for RSVPResvTear_Base:
List of all members.
Detailed Description
Class generated from RSVPResvMsg.msg
by opp_msgc.
message RSVPResvTear extends RSVPPacket
{
properties:
customize=true;
fields:
RsvpHopObj_t hop;
FlowDescriptorVector flowDescriptor;
int rsvpKind = RTEAR_MESSAGE;
};
RSVPResvTear_Base is only useful if it gets subclassed, and RSVPResvTear is derived from it. The minimum code to be written for RSVPResvTear is the following:
class RSVPResvTear : public RSVPResvTear_Base
{
public:
RSVPResvTear(const char *name=NULL, int kind=0) : RSVPResvTear_Base(name,kind) {}
RSVPResvTear(const RSVPResvTear& other) : RSVPResvTear_Base(other.name()) {operator=(other);}
RSVPResvTear& operator=(const RSVPResvTear& other) {RSVPResvTear_Base::operator=(other); return *this;}
virtual cPolymorphic *dup() const {return new RSVPResvTear(*this);}
// ADD CODE HERE to redefine and implement pure virtual functions from RSVPResvTear_Base
};
The following should go into a .cc (.cpp) file:
Register_Class(RSVPResvTear);
Constructor & Destructor Documentation
RSVPResvTear_Base::RSVPResvTear_Base |
( |
const char * |
name = NULL , |
|
|
int |
kind = 0 |
|
) |
[protected] |
|
Member Function Documentation
virtual cPolymorphic* RSVPResvTear_Base::dup |
( |
|
) |
const [inline, virtual] |
|
|
Reimplemented from RSVPPacket_Base.
Reimplemented in RSVPResvTear. 00142 {throw new cException("You forgot to manually add a dup() function to class RSVPResvTear");}
|
virtual const FlowDescriptorVector& RSVPResvTear_Base::getFlowDescriptor |
( |
|
) |
const [inline, virtual] |
|
|
00151 {return const_cast<RSVPResvTear_Base*>(this)->getFlowDescriptor();}
|
virtual const RsvpHopObj_t& RSVPResvTear_Base::getHop |
( |
|
) |
const [inline, virtual] |
|
|
00148 {return const_cast<RSVPResvTear_Base*>(this)->getHop();}
|
virtual RsvpHopObj_t& RSVPResvTear_Base::getHop |
( |
|
) |
[virtual] |
|
virtual int RSVPResvTear_Base::getRsvpKind |
( |
|
) |
const [virtual] |
|
virtual void RSVPResvTear_Base::netPack |
( |
cCommBuffer * |
b |
) |
[virtual] |
|
virtual void RSVPResvTear_Base::netUnpack |
( |
cCommBuffer * |
b |
) |
[virtual] |
|
virtual void RSVPResvTear_Base::setFlowDescriptor |
( |
const FlowDescriptorVector & |
flowDescriptor_var |
) |
[virtual] |
|
virtual void RSVPResvTear_Base::setHop |
( |
const RsvpHopObj_t & |
hop_var |
) |
[virtual] |
|
virtual void RSVPResvTear_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