#include <RSVPResvMsg_m.h>
Inheritance diagram for RSVPResvTear_Base:

RSVPResvMsg.msg by opp_msgc.
message RSVPResvTear extends RSVPPacket
{
properties:
customize=true;
fields:
RsvpHopObj_t hop;
FlowDescriptorVector flowDescriptor;
int rsvpKind = RTEAR_MESSAGE;
};
RSVPResvTear_Base is only useful if it gets subclassed, and RSVPResvTear is derived from it. The minimum code to be written for RSVPResvTear is the following:
class RSVPResvTear : public RSVPResvTear_Base
{
public:
RSVPResvTear(const char *name=NULL, int kind=0) : RSVPResvTear_Base(name,kind) {}
RSVPResvTear(const RSVPResvTear& other) : RSVPResvTear_Base(other.name()) {operator=(other);}
RSVPResvTear& operator=(const RSVPResvTear& other) {RSVPResvTear_Base::operator=(other); return *this;}
virtual cPolymorphic *dup() const {return new RSVPResvTear(*this);}
// ADD CODE HERE to redefine and implement pure virtual functions from RSVPResvTear_Base
};
The following should go into a .cc (.cpp) file:
Register_Class(RSVPResvTear);
Public Member Functions | |
| virtual | ~RSVPResvTear_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 RSVPResvTear_Base &) |
| RSVPResvTear_Base (const char *name=NULL, int kind=0) | |
| RSVPResvTear_Base (const RSVPResvTear_Base &other) | |
| RSVPResvTear_Base & | operator= (const RSVPResvTear_Base &other) |
Protected Attributes | |
| RsvpHopObj_t | hop_var |
| FlowDescriptorVector | flowDescriptor_var |
| int | rsvpKind_var |
| RSVPResvTear_Base::RSVPResvTear_Base | ( | const char * | name = NULL, |
|
| int | kind = 0 | |||
| ) | [protected] |
| RSVPResvTear_Base::RSVPResvTear_Base | ( | const RSVPResvTear_Base & | other | ) | [protected] |
| virtual RSVPResvTear_Base::~RSVPResvTear_Base | ( | ) | [virtual] |
| virtual cPolymorphic* RSVPResvTear_Base::dup | ( | ) | const [inline, virtual] |
Reimplemented from RSVPPacket_Base.
Reimplemented in RSVPResvTear.
00142 {throw new cRuntimeError("You forgot to manually add a dup() function to class RSVPResvTear");}
| virtual const FlowDescriptorVector& RSVPResvTear_Base::getFlowDescriptor | ( | ) | const [inline, virtual] |
| virtual FlowDescriptorVector& RSVPResvTear_Base::getFlowDescriptor | ( | ) | [virtual] |
| virtual const RsvpHopObj_t& RSVPResvTear_Base::getHop | ( | ) | const [inline, virtual] |
| virtual RsvpHopObj_t& RSVPResvTear_Base::getHop | ( | ) | [virtual] |
| virtual int RSVPResvTear_Base::getRsvpKind | ( | ) | const [virtual] |
Reimplemented from RSVPMessage.
| virtual void RSVPResvTear_Base::netPack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
| virtual void RSVPResvTear_Base::netUnpack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
| RSVPResvTear_Base& RSVPResvTear_Base::operator= | ( | const RSVPResvTear_Base & | other | ) | [protected] |
| bool RSVPResvTear_Base::operator== | ( | const RSVPResvTear_Base & | ) | [protected] |
| virtual void RSVPResvTear_Base::setFlowDescriptor | ( | const FlowDescriptorVector & | flowDescriptor_var | ) | [virtual] |
| virtual void RSVPResvTear_Base::setHop | ( | const RsvpHopObj_t & | hop_var | ) | [virtual] |
| virtual void RSVPResvTear_Base::setRsvpKind | ( | int | rsvpKind_var | ) | [virtual] |
Reimplemented from RSVPMessage.
RsvpHopObj_t RSVPResvTear_Base::hop_var [protected] |
int RSVPResvTear_Base::rsvpKind_var [protected] |
Reimplemented from RSVPMessage.
1.4.7