RSVPPathMsg_Base Class Reference
#include <RSVPPathMsg_m.h>
Inheritance diagram for RSVPPathMsg_Base:
List of all members.
Detailed Description
Class generated from RSVPPathMsg.msg
by opp_msgc.
message RSVPPathMsg extends RSVPPacket
{
properties:
customize=true;
fields:
RsvpHopObj_t hop;
LabelRequestObj_t label_request;
SenderDescriptor_t sender_descriptor;
EroVector ERO;
int color;
int rsvpKind = PATH_MESSAGE;
};
RSVPPathMsg_Base is only useful if it gets subclassed, and RSVPPathMsg is derived from it. The minimum code to be written for RSVPPathMsg is the following:
class RSVPPathMsg : public RSVPPathMsg_Base
{
public:
RSVPPathMsg(const char *name=NULL, int kind=0) : RSVPPathMsg_Base(name,kind) {}
RSVPPathMsg(const RSVPPathMsg& other) : RSVPPathMsg_Base(other.name()) {operator=(other);}
RSVPPathMsg& operator=(const RSVPPathMsg& other) {RSVPPathMsg_Base::operator=(other); return *this;}
virtual cPolymorphic *dup() const {return new RSVPPathMsg(*this);}
// ADD CODE HERE to redefine and implement pure virtual functions from RSVPPathMsg_Base
};
The following should go into a .cc (.cpp) file:
Register_Class(RSVPPathMsg);
Constructor & Destructor Documentation
RSVPPathMsg_Base::RSVPPathMsg_Base |
( |
const char * |
name = NULL , |
|
|
int |
kind = 0 |
|
) |
[protected] |
|
RSVPPathMsg_Base::RSVPPathMsg_Base |
( |
const RSVPPathMsg_Base & |
other |
) |
[protected] |
|
Member Function Documentation
virtual cPolymorphic* RSVPPathMsg_Base::dup |
( |
|
) |
const [inline, virtual] |
|
|
Reimplemented from RSVPPacket_Base. 00082 {throw new cException("You forgot to manually add a dup() function to class RSVPPathMsg");}
|
virtual int RSVPPathMsg_Base::getColor |
( |
|
) |
const [virtual] |
|
virtual const EroVector& RSVPPathMsg_Base::getERO |
( |
|
) |
const [inline, virtual] |
|
|
00097 {return const_cast<RSVPPathMsg_Base*>(this)->getERO();}
|
virtual EroVector& RSVPPathMsg_Base::getERO |
( |
|
) |
[virtual] |
|
virtual const RsvpHopObj_t& RSVPPathMsg_Base::getHop |
( |
|
) |
const [inline, virtual] |
|
|
00088 {return const_cast<RSVPPathMsg_Base*>(this)->getHop();}
|
virtual RsvpHopObj_t& RSVPPathMsg_Base::getHop |
( |
|
) |
[virtual] |
|
virtual const LabelRequestObj_t& RSVPPathMsg_Base::getLabel_request |
( |
|
) |
const [inline, virtual] |
|
|
00091 {return const_cast<RSVPPathMsg_Base*>(this)->getLabel_request();}
|
virtual int RSVPPathMsg_Base::getRsvpKind |
( |
|
) |
const [virtual] |
|
virtual const SenderDescriptor_t& RSVPPathMsg_Base::getSender_descriptor |
( |
|
) |
const [inline, virtual] |
|
|
00094 {return const_cast<RSVPPathMsg_Base*>(this)->getSender_descriptor();}
|
virtual void RSVPPathMsg_Base::netPack |
( |
cCommBuffer * |
b |
) |
[virtual] |
|
virtual void RSVPPathMsg_Base::netUnpack |
( |
cCommBuffer * |
b |
) |
[virtual] |
|
virtual void RSVPPathMsg_Base::setColor |
( |
int |
color_var |
) |
[virtual] |
|
virtual void RSVPPathMsg_Base::setERO |
( |
const EroVector & |
ERO_var |
) |
[virtual] |
|
virtual void RSVPPathMsg_Base::setHop |
( |
const RsvpHopObj_t & |
hop_var |
) |
[virtual] |
|
virtual void RSVPPathMsg_Base::setLabel_request |
( |
const LabelRequestObj_t & |
label_request_var |
) |
[virtual] |
|
virtual void RSVPPathMsg_Base::setRsvpKind |
( |
int |
rsvpKind_var |
) |
[virtual] |
|
virtual void RSVPPathMsg_Base::setSender_descriptor |
( |
const SenderDescriptor_t & |
sender_descriptor_var |
) |
[virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Thu Oct 19 18:22:28 2006 for INET Framework for OMNeT++/OMNEST by
1.4.0