OverSim
|
Class generated from applications/i3/I3Message.msg
by opp_msgc.
More...
#include <I3Message_m.h>
Public Member Functions | |
virtual | ~I3QueryReplyMessage_Base () |
virtual I3QueryReplyMessage_Base * | dup () const |
virtual void | parsimPack (cCommBuffer *b) |
virtual void | parsimUnpack (cCommBuffer *b) |
virtual I3IPAddress & | getSource () |
virtual const I3IPAddress & | getSource () const |
virtual void | setSource (const I3IPAddress &source) |
virtual I3Identifier & | getIdentifier () |
virtual const I3Identifier & | getIdentifier () const |
virtual void | setIdentifier (const I3Identifier &identifier) |
virtual simtime_t | getSendingTime () const |
virtual void | setSendingTime (simtime_t sendingTime) |
Public Member Functions inherited from I3Message | |
I3Message (const char *name=NULL, int kind=0) | |
I3Message (const I3Message &other) | |
virtual | ~I3Message () |
I3Message & | operator= (const I3Message &other) |
virtual int | getType () const |
virtual void | setType (int type) |
Protected Member Functions | |
bool | operator== (const I3QueryReplyMessage_Base &) |
I3QueryReplyMessage_Base (const char *name=NULL, int kind=0) | |
I3QueryReplyMessage_Base (const I3QueryReplyMessage_Base &other) | |
I3QueryReplyMessage_Base & | operator= (const I3QueryReplyMessage_Base &other) |
Protected Member Functions inherited from I3Message | |
bool | operator== (const I3Message &) |
Protected Attributes | |
I3IPAddress | source_var |
I3Identifier | identifier_var |
simtime_t | sendingTime_var |
Protected Attributes inherited from I3Message | |
int | type_var |
Private Member Functions | |
void | copy (const I3QueryReplyMessage_Base &other) |
Class generated from applications/i3/I3Message.msg
by opp_msgc.
packet I3QueryReplyMessage extends I3Message { (true); I3IPAddress source; I3Identifier identifier; simtime_t sendingTime; }
I3QueryReplyMessage_Base is only useful if it gets subclassed, and I3QueryReplyMessage is derived from it. The minimum code to be written for I3QueryReplyMessage is the following:
class I3QueryReplyMessage : public I3QueryReplyMessage_Base { private: void copy(const I3QueryReplyMessage& other) { ... }
public: I3QueryReplyMessage(const char *name=NULL, int kind=0) : I3QueryReplyMessage_Base(name,kind) {} I3QueryReplyMessage(const I3QueryReplyMessage& other) : I3QueryReplyMessage_Base(other) {copy(other);} I3QueryReplyMessage& operator=(const I3QueryReplyMessage& other) {if (this==&other) return *this; I3QueryReplyMessage_Base::operator=(other); copy(other); return *this;} virtual I3QueryReplyMessage *dup() const {return new I3QueryReplyMessage(*this);} // ADD CODE HERE to redefine and implement pure virtual functions from I3QueryReplyMessage_Base };
The following should go into a .cc (.cpp) file:
Register_Class(I3QueryReplyMessage);
Definition at line 199 of file I3Message_m.h.
|
protected |
|
protected |
|
virtual |
|
private |
|
inlinevirtual |
Reimplemented from I3Message.
Reimplemented in I3QueryReplyMessage.
Definition at line 220 of file I3Message_m.h.
|
virtual |
Referenced by I3BaseApp::handleUDPMessage().
|
inlinevirtual |
|
virtual |
Referenced by I3BaseApp::handleUDPMessage().
|
virtual |
Referenced by I3BaseApp::handleUDPMessage().
|
inlinevirtual |
|
protected |
|
protected |
|
virtual |
Reimplemented from I3Message.
|
virtual |
Reimplemented from I3Message.
|
virtual |
|
virtual |
|
virtual |
|
protected |
Definition at line 203 of file I3Message_m.h.
|
protected |
Definition at line 204 of file I3Message_m.h.
|
protected |
Definition at line 202 of file I3Message_m.h.