#include <RSVPPacket_m.h>
Inheritance diagram for RSVPPacket_Base:

RSVPPacket.msg by opp_msgc.
message RSVPPacket extends RSVPMessage
{
properties:
customize=true;
fields:
SessionObj_t session;
bool checksumValid = true;
};
RSVPPacket_Base is only useful if it gets subclassed, and RSVPPacket is derived from it. The minimum code to be written for RSVPPacket is the following:
class RSVPPacket : public RSVPPacket_Base
{
public:
RSVPPacket(const char *name=NULL, int kind=0) : RSVPPacket_Base(name,kind) {}
RSVPPacket(const RSVPPacket& other) : RSVPPacket_Base(other.name()) {operator=(other);}
RSVPPacket& operator=(const RSVPPacket& other) {RSVPPacket_Base::operator=(other); return *this;}
virtual cPolymorphic *dup() const {return new RSVPPacket(*this);}
// ADD CODE HERE to redefine and implement pure virtual functions from RSVPPacket_Base
};
The following should go into a .cc (.cpp) file:
Register_Class(RSVPPacket);
Public Member Functions | |
| virtual | ~RSVPPacket_Base () |
| virtual cPolymorphic * | dup () const |
| virtual void | netPack (cCommBuffer *b) |
| virtual void | netUnpack (cCommBuffer *b) |
| virtual SessionObj_t & | getSession () |
| virtual const SessionObj_t & | getSession () const |
| virtual void | setSession (const SessionObj_t &session_var) |
| virtual bool | getChecksumValid () const |
| virtual void | setChecksumValid (bool checksumValid_var) |
Protected Member Functions | |
| bool | operator== (const RSVPPacket_Base &) |
| RSVPPacket_Base (const char *name=NULL, int kind=0) | |
| RSVPPacket_Base (const RSVPPacket_Base &other) | |
| RSVPPacket_Base & | operator= (const RSVPPacket_Base &other) |
Protected Attributes | |
| SessionObj_t | session_var |
| bool | checksumValid_var |
| RSVPPacket_Base::RSVPPacket_Base | ( | const char * | name = NULL, |
|
| int | kind = 0 | |||
| ) | [protected] |
| RSVPPacket_Base::RSVPPacket_Base | ( | const RSVPPacket_Base & | other | ) | [protected] |
| virtual RSVPPacket_Base::~RSVPPacket_Base | ( | ) | [virtual] |
| virtual cPolymorphic* RSVPPacket_Base::dup | ( | ) | const [inline, virtual] |
Reimplemented from RSVPMessage.
Reimplemented in RSVPPathMsg_Base, RSVPPathTear_Base, RSVPPathError_Base, RSVPResvMsg, RSVPResvTear, RSVPResvMsg_Base, RSVPResvTear_Base, and RSVPResvError_Base.
| virtual bool RSVPPacket_Base::getChecksumValid | ( | ) | const [virtual] |
| virtual const SessionObj_t& RSVPPacket_Base::getSession | ( | ) | const [inline, virtual] |
| virtual SessionObj_t& RSVPPacket_Base::getSession | ( | ) | [virtual] |
| virtual void RSVPPacket_Base::netPack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPMessage.
Reimplemented in RSVPPathMsg_Base, RSVPPathTear_Base, RSVPPathError_Base, RSVPResvMsg_Base, RSVPResvTear_Base, and RSVPResvError_Base.
| virtual void RSVPPacket_Base::netUnpack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPMessage.
Reimplemented in RSVPPathMsg_Base, RSVPPathTear_Base, RSVPPathError_Base, RSVPResvMsg_Base, RSVPResvTear_Base, and RSVPResvError_Base.
| RSVPPacket_Base& RSVPPacket_Base::operator= | ( | const RSVPPacket_Base & | other | ) | [protected] |
| bool RSVPPacket_Base::operator== | ( | const RSVPPacket_Base & | ) | [protected] |
| virtual void RSVPPacket_Base::setChecksumValid | ( | bool | checksumValid_var | ) | [virtual] |
| virtual void RSVPPacket_Base::setSession | ( | const SessionObj_t & | session_var | ) | [virtual] |
bool RSVPPacket_Base::checksumValid_var [protected] |
SessionObj_t RSVPPacket_Base::session_var [protected] |
1.4.7