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