INET Framework for OMNeT++/OMNEST
|
Class generated from inet/networklayer/common/SimpleNetworkProtocolControlInfo.msg:31
by nedtool.
More...
#include <SimpleNetworkProtocolControlInfo_m.h>
Public Member Functions | |
virtual | ~SimpleNetworkProtocolControlInfo_Base () |
virtual SimpleNetworkProtocolControlInfo_Base * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
virtual L3Address & | _getDestinationAddress () |
virtual const L3Address & | _getDestinationAddress () const |
virtual void | setDestinationAddress (const L3Address &destinationAddress) |
virtual L3Address & | _getSourceAddress () |
virtual const L3Address & | _getSourceAddress () const |
virtual void | setSourceAddress (const L3Address &sourceAddress) |
virtual int | getInterfaceId () const |
virtual void | setInterfaceId (int interfaceId) |
virtual short | getProtocol () const |
virtual void | setProtocol (short protocol) |
virtual short | getHopLimit () const |
virtual void | setHopLimit (short hopLimit) |
Protected Member Functions | |
bool | operator== (const SimpleNetworkProtocolControlInfo_Base &) |
SimpleNetworkProtocolControlInfo_Base () | |
SimpleNetworkProtocolControlInfo_Base (const SimpleNetworkProtocolControlInfo_Base &other) | |
SimpleNetworkProtocolControlInfo_Base & | operator= (const SimpleNetworkProtocolControlInfo_Base &other) |
Protected Attributes | |
L3Address | destinationAddress |
L3Address | sourceAddress |
int | interfaceId |
short | protocol |
short | hopLimit |
Private Member Functions | |
void | copy (const SimpleNetworkProtocolControlInfo_Base &other) |
Class generated from inet/networklayer/common/SimpleNetworkProtocolControlInfo.msg:31
by nedtool.
// // Network level control information for sending/receiving packets. // class SimpleNetworkProtocolControlInfo { @customize(true); L3Address destinationAddress @getter(_getDestinationAddress); L3Address sourceAddress @getter(_getSourceAddress); int interfaceId = -1; short protocol; short hopLimit; }
SimpleNetworkProtocolControlInfo_Base is only useful if it gets subclassed, and SimpleNetworkProtocolControlInfo is derived from it. The minimum code to be written for SimpleNetworkProtocolControlInfo is the following:
class INET_API SimpleNetworkProtocolControlInfo : public SimpleNetworkProtocolControlInfo_Base { private: void copy(const SimpleNetworkProtocolControlInfo& other) { ... }
public: SimpleNetworkProtocolControlInfo() : SimpleNetworkProtocolControlInfo_Base() {} SimpleNetworkProtocolControlInfo(const SimpleNetworkProtocolControlInfo& other) : SimpleNetworkProtocolControlInfo_Base(other) {copy(other);} SimpleNetworkProtocolControlInfo& operator=(const SimpleNetworkProtocolControlInfo& other) {if (this==&other) return *this; SimpleNetworkProtocolControlInfo_Base::operator=(other); copy(other); return *this;} virtual SimpleNetworkProtocolControlInfo *dup() const override {return new SimpleNetworkProtocolControlInfo(*this);} // ADD CODE HERE to redefine and implement pure virtual functions from SimpleNetworkProtocolControlInfo_Base };
The following should go into a .cc (.cpp) file:
Register_Class(SimpleNetworkProtocolControlInfo)
|
protected |
|
protected |
|
virtual |
|
virtual |
|
inlinevirtual |
Referenced by _getDestinationAddress().
|
virtual |
Referenced by inet::SimpleNetworkProtocolControlInfo::getSourceAddress().
|
inlinevirtual |
Referenced by _getSourceAddress().
|
private |
|
inlineoverridevirtual |
Reimplemented in inet::SimpleNetworkProtocolControlInfo.
|
virtual |
Reimplemented in inet::SimpleNetworkProtocolControlInfo.
Referenced by inet::SimpleNetworkProtocolControlInfo::getHopLimit().
|
virtual |
Reimplemented in inet::SimpleNetworkProtocolControlInfo.
Referenced by inet::SimpleNetworkProtocolControlInfo::getInterfaceId().
|
virtual |
|
protected |
Referenced by inet::SimpleNetworkProtocolControlInfo::operator=().
|
protected |
|
overridevirtual |
|
overridevirtual |
|
virtual |
Reimplemented in inet::SimpleNetworkProtocolControlInfo.
Referenced by inet::SimpleNetworkProtocolControlInfo::setDestinationAddress().
|
virtual |
Reimplemented in inet::SimpleNetworkProtocolControlInfo.
Referenced by inet::SimpleNetworkProtocolControlInfo::setHopLimit().
|
virtual |
Reimplemented in inet::SimpleNetworkProtocolControlInfo.
Referenced by inet::SimpleNetworkProtocolControlInfo::setInterfaceId().
|
virtual |
|
virtual |
Reimplemented in inet::SimpleNetworkProtocolControlInfo.
Referenced by inet::SimpleNetworkProtocolControlInfo::setSourceAddress().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |