RSVPPacket_Base Class Reference
#include <RSVPPacket_m.h>
Inheritance diagram for RSVPPacket_Base:
List of all members.
Detailed Description
Class generated from 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);
Constructor & Destructor Documentation
RSVPPacket_Base::RSVPPacket_Base |
( |
const char * |
name = NULL , |
|
|
int |
kind = 0 |
|
) |
[protected] |
|
RSVPPacket_Base::RSVPPacket_Base |
( |
const RSVPPacket_Base & |
other |
) |
[protected] |
|
Member Function Documentation
virtual cPolymorphic* RSVPPacket_Base::dup |
( |
|
) |
const [inline, virtual] |
|
virtual bool RSVPPacket_Base::getChecksumValid |
( |
|
) |
const [virtual] |
|
virtual const SessionObj_t& RSVPPacket_Base::getSession |
( |
|
) |
const [inline, virtual] |
|
|
00121 {return const_cast<RSVPPacket_Base*>(this)->getSession();}
|
virtual SessionObj_t& RSVPPacket_Base::getSession |
( |
|
) |
[virtual] |
|
virtual void RSVPPacket_Base::netPack |
( |
cCommBuffer * |
b |
) |
[virtual] |
|
virtual void RSVPPacket_Base::netUnpack |
( |
cCommBuffer * |
b |
) |
[virtual] |
|
virtual void RSVPPacket_Base::setChecksumValid |
( |
bool |
checksumValid_var |
) |
[virtual] |
|
virtual void RSVPPacket_Base::setSession |
( |
const SessionObj_t & |
session_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