#include <RSVPResvMsg_m.h>
Inheritance diagram for RSVPResvMsg_Base:
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);
Public Member Functions | |
virtual | ~RSVPResvMsg_Base () |
virtual cPolymorphic * | dup () const |
virtual void | netPack (cCommBuffer *b) |
virtual void | netUnpack (cCommBuffer *b) |
virtual RsvpHopObj_t & | getHop () |
virtual const RsvpHopObj_t & | getHop () const |
virtual void | setHop (const RsvpHopObj_t &hop_var) |
virtual FlowDescriptorVector & | getFlowDescriptor () |
virtual const FlowDescriptorVector & | getFlowDescriptor () const |
virtual void | setFlowDescriptor (const FlowDescriptorVector &flowDescriptor_var) |
virtual int | getRsvpKind () const |
virtual void | setRsvpKind (int rsvpKind_var) |
Protected Member Functions | |
bool | operator== (const RSVPResvMsg_Base &) |
RSVPResvMsg_Base (const char *name=NULL, int kind=0) | |
RSVPResvMsg_Base (const RSVPResvMsg_Base &other) | |
RSVPResvMsg_Base & | operator= (const RSVPResvMsg_Base &other) |
Protected Attributes | |
RsvpHopObj_t | hop_var |
FlowDescriptorVector | flowDescriptor_var |
int | rsvpKind_var |
RSVPResvMsg_Base::RSVPResvMsg_Base | ( | const char * | name = NULL , |
|
int | kind = 0 | |||
) | [protected] |
RSVPResvMsg_Base::RSVPResvMsg_Base | ( | const RSVPResvMsg_Base & | other | ) | [protected] |
virtual RSVPResvMsg_Base::~RSVPResvMsg_Base | ( | ) | [virtual] |
virtual cPolymorphic* RSVPResvMsg_Base::dup | ( | ) | const [inline, virtual] |
Reimplemented from RSVPPacket_Base.
Reimplemented in RSVPResvMsg.
00075 {throw new cRuntimeError("You forgot to manually add a dup() function to class RSVPResvMsg");}
virtual const FlowDescriptorVector& RSVPResvMsg_Base::getFlowDescriptor | ( | ) | const [inline, virtual] |
virtual FlowDescriptorVector& RSVPResvMsg_Base::getFlowDescriptor | ( | ) | [virtual] |
virtual const RsvpHopObj_t& RSVPResvMsg_Base::getHop | ( | ) | const [inline, virtual] |
virtual RsvpHopObj_t& RSVPResvMsg_Base::getHop | ( | ) | [virtual] |
virtual int RSVPResvMsg_Base::getRsvpKind | ( | ) | const [virtual] |
Reimplemented from RSVPMessage.
virtual void RSVPResvMsg_Base::netPack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
virtual void RSVPResvMsg_Base::netUnpack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
RSVPResvMsg_Base& RSVPResvMsg_Base::operator= | ( | const RSVPResvMsg_Base & | other | ) | [protected] |
bool RSVPResvMsg_Base::operator== | ( | const RSVPResvMsg_Base & | ) | [protected] |
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] |
Reimplemented from RSVPMessage.
RsvpHopObj_t RSVPResvMsg_Base::hop_var [protected] |
int RSVPResvMsg_Base::rsvpKind_var [protected] |
Reimplemented from RSVPMessage.