RSVPHelloMsg_Base Class Reference
#include <RSVPHello_m.h>
Inheritance diagram for RSVPHelloMsg_Base:
List of all members.
Detailed Description
Class generated from RSVPHello.msg
by opp_msgc.
message RSVPHelloMsg extends RSVPMessage
{
properties:
customize=true;
fields:
bool request;
bool ack;
int srcInstance;
int dstInstance;
int rsvpKind = HELLO_MESSAGE;
};
RSVPHelloMsg_Base is only useful if it gets subclassed, and RSVPHelloMsg is derived from it. The minimum code to be written for RSVPHelloMsg is the following:
class RSVPHelloMsg : public RSVPHelloMsg_Base
{
public:
RSVPHelloMsg(const char *name=NULL, int kind=0) : RSVPHelloMsg_Base(name,kind) {}
RSVPHelloMsg(const RSVPHelloMsg& other) : RSVPHelloMsg_Base(other.name()) {operator=(other);}
RSVPHelloMsg& operator=(const RSVPHelloMsg& other) {RSVPHelloMsg_Base::operator=(other); return *this;}
virtual cPolymorphic *dup() const {return new RSVPHelloMsg(*this);}
// ADD CODE HERE to redefine and implement pure virtual functions from RSVPHelloMsg_Base
};
The following should go into a .cc (.cpp) file:
Register_Class(RSVPHelloMsg);
Constructor & Destructor Documentation
RSVPHelloMsg_Base::RSVPHelloMsg_Base |
( |
const char * |
name = NULL , |
|
|
int |
kind = 0 |
|
) |
[protected] |
|
Member Function Documentation
virtual cPolymorphic* RSVPHelloMsg_Base::dup |
( |
|
) |
const [inline, virtual] |
|
|
Reimplemented from RSVPMessage. 00080 {throw new cException("You forgot to manually add a dup() function to class RSVPHelloMsg");}
|
virtual bool RSVPHelloMsg_Base::getAck |
( |
|
) |
const [virtual] |
|
virtual int RSVPHelloMsg_Base::getDstInstance |
( |
|
) |
const [virtual] |
|
virtual bool RSVPHelloMsg_Base::getRequest |
( |
|
) |
const [virtual] |
|
virtual int RSVPHelloMsg_Base::getRsvpKind |
( |
|
) |
const [virtual] |
|
virtual int RSVPHelloMsg_Base::getSrcInstance |
( |
|
) |
const [virtual] |
|
virtual void RSVPHelloMsg_Base::netPack |
( |
cCommBuffer * |
b |
) |
[virtual] |
|
virtual void RSVPHelloMsg_Base::netUnpack |
( |
cCommBuffer * |
b |
) |
[virtual] |
|
virtual void RSVPHelloMsg_Base::setAck |
( |
bool |
ack_var |
) |
[virtual] |
|
virtual void RSVPHelloMsg_Base::setDstInstance |
( |
int |
dstInstance_var |
) |
[virtual] |
|
virtual void RSVPHelloMsg_Base::setRequest |
( |
bool |
request_var |
) |
[virtual] |
|
virtual void RSVPHelloMsg_Base::setRsvpKind |
( |
int |
rsvpKind_var |
) |
[virtual] |
|
virtual void RSVPHelloMsg_Base::setSrcInstance |
( |
int |
srcInstance_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