#include <RSVPPathMsg_m.h>
Inheritance diagram for RSVPPathTear_Base:
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);
Public Member Functions | |
virtual | ~RSVPPathTear_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 SenderTemplateObj_t & | getSenderTemplate () |
virtual const SenderTemplateObj_t & | getSenderTemplate () const |
virtual void | setSenderTemplate (const SenderTemplateObj_t &senderTemplate_var) |
virtual bool | getForce () const |
virtual void | setForce (bool force_var) |
virtual int | getRsvpKind () const |
virtual void | setRsvpKind (int rsvpKind_var) |
Protected Member Functions | |
bool | operator== (const RSVPPathTear_Base &) |
RSVPPathTear_Base (const char *name=NULL, int kind=0) | |
RSVPPathTear_Base (const RSVPPathTear_Base &other) | |
RSVPPathTear_Base & | operator= (const RSVPPathTear_Base &other) |
Protected Attributes | |
RsvpHopObj_t | hop_var |
SenderTemplateObj_t | senderTemplate_var |
bool | force_var |
int | rsvpKind_var |
RSVPPathTear_Base::RSVPPathTear_Base | ( | const char * | name = NULL , |
|
int | kind = 0 | |||
) | [protected] |
RSVPPathTear_Base::RSVPPathTear_Base | ( | const RSVPPathTear_Base & | other | ) | [protected] |
virtual RSVPPathTear_Base::~RSVPPathTear_Base | ( | ) | [virtual] |
virtual cPolymorphic* RSVPPathTear_Base::dup | ( | ) | const [inline, virtual] |
Reimplemented from RSVPPacket_Base.
00159 {throw new cRuntimeError("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] |
virtual RsvpHopObj_t& RSVPPathTear_Base::getHop | ( | ) | [virtual] |
virtual int RSVPPathTear_Base::getRsvpKind | ( | ) | const [virtual] |
Reimplemented from RSVPMessage.
virtual const SenderTemplateObj_t& RSVPPathTear_Base::getSenderTemplate | ( | ) | const [inline, virtual] |
virtual SenderTemplateObj_t& RSVPPathTear_Base::getSenderTemplate | ( | ) | [virtual] |
virtual void RSVPPathTear_Base::netPack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
virtual void RSVPPathTear_Base::netUnpack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
RSVPPathTear_Base& RSVPPathTear_Base::operator= | ( | const RSVPPathTear_Base & | other | ) | [protected] |
bool RSVPPathTear_Base::operator== | ( | const RSVPPathTear_Base & | ) | [protected] |
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] |
Reimplemented from RSVPMessage.
virtual void RSVPPathTear_Base::setSenderTemplate | ( | const SenderTemplateObj_t & | senderTemplate_var | ) | [virtual] |
bool RSVPPathTear_Base::force_var [protected] |
RsvpHopObj_t RSVPPathTear_Base::hop_var [protected] |
int RSVPPathTear_Base::rsvpKind_var [protected] |
Reimplemented from RSVPMessage.