RSVPPathTear_Base Class Reference
#include <RSVPPathMsg_m.h>
Inheritance diagram for RSVPPathTear_Base:
List of all members.
Detailed Description
Class generated from RSVPPathMsg.msg
by opp_msgc.
message RSVPPathTear extends RSVPPacket
{
properties:
customize=true;
fields:
RsvpHopObj_t hop;
SenderTemplateObj_t senderTemplate;
bool force;
int rsvpKind = PTEAR_MESSAGE;
};
RSVPPathTear_Base is only useful if it gets subclassed, and RSVPPathTear is derived from it. The minimum code to be written for RSVPPathTear is the following:
class RSVPPathTear : public RSVPPathTear_Base
{
public:
RSVPPathTear(const char *name=NULL, int kind=0) : RSVPPathTear_Base(name,kind) {}
RSVPPathTear(const RSVPPathTear& other) : RSVPPathTear_Base(other.name()) {operator=(other);}
RSVPPathTear& operator=(const RSVPPathTear& other) {RSVPPathTear_Base::operator=(other); return *this;}
virtual cPolymorphic *dup() const {return new RSVPPathTear(*this);}
// ADD CODE HERE to redefine and implement pure virtual functions from RSVPPathTear_Base
};
The following should go into a .cc (.cpp) file:
Register_Class(RSVPPathTear);
Constructor & Destructor Documentation
RSVPPathTear_Base::RSVPPathTear_Base |
( |
const char * |
name = NULL , |
|
|
int |
kind = 0 |
|
) |
[protected] |
|
Member Function Documentation
virtual cPolymorphic* RSVPPathTear_Base::dup |
( |
|
) |
const [inline, virtual] |
|
|
Reimplemented from RSVPPacket_Base. 00159 {throw new cException("You forgot to manually add a dup() function to class RSVPPathTear");}
|
virtual bool RSVPPathTear_Base::getForce |
( |
|
) |
const [virtual] |
|
virtual const RsvpHopObj_t& RSVPPathTear_Base::getHop |
( |
|
) |
const [inline, virtual] |
|
|
00165 {return const_cast<RSVPPathTear_Base*>(this)->getHop();}
|
virtual RsvpHopObj_t& RSVPPathTear_Base::getHop |
( |
|
) |
[virtual] |
|
virtual int RSVPPathTear_Base::getRsvpKind |
( |
|
) |
const [virtual] |
|
virtual const SenderTemplateObj_t& RSVPPathTear_Base::getSenderTemplate |
( |
|
) |
const [inline, virtual] |
|
|
00168 {return const_cast<RSVPPathTear_Base*>(this)->getSenderTemplate();}
|
virtual void RSVPPathTear_Base::netPack |
( |
cCommBuffer * |
b |
) |
[virtual] |
|
virtual void RSVPPathTear_Base::netUnpack |
( |
cCommBuffer * |
b |
) |
[virtual] |
|
virtual void RSVPPathTear_Base::setForce |
( |
bool |
force_var |
) |
[virtual] |
|
virtual void RSVPPathTear_Base::setHop |
( |
const RsvpHopObj_t & |
hop_var |
) |
[virtual] |
|
virtual void RSVPPathTear_Base::setRsvpKind |
( |
int |
rsvpKind_var |
) |
[virtual] |
|
virtual void RSVPPathTear_Base::setSenderTemplate |
( |
const SenderTemplateObj_t & |
senderTemplate_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