|
INET Framework for OMNeT++/OMNEST
|
Class generated from inet/networklayer/contract/generic/GenericNetworkProtocolControlInfo.msg:33 by nedtool.
More...
#include <GenericNetworkProtocolControlInfo_m.h>
Public Member Functions | |
| virtual | ~GenericNetworkProtocolControlInfo_Base () |
| virtual GenericNetworkProtocolControlInfo_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 GenericNetworkProtocolControlInfo_Base &) |
| GenericNetworkProtocolControlInfo_Base () | |
| GenericNetworkProtocolControlInfo_Base (const GenericNetworkProtocolControlInfo_Base &other) | |
| GenericNetworkProtocolControlInfo_Base & | operator= (const GenericNetworkProtocolControlInfo_Base &other) |
Protected Attributes | |
| L3Address | destinationAddress |
| L3Address | sourceAddress |
| int | interfaceId |
| short | protocol |
| short | hopLimit |
Private Member Functions | |
| void | copy (const GenericNetworkProtocolControlInfo_Base &other) |
Class generated from inet/networklayer/contract/generic/GenericNetworkProtocolControlInfo.msg:33 by nedtool.
// // Control information for sending/receiving packets over the generic network protocol. // class GenericNetworkProtocolControlInfo //TODO rename!!!! { @customize(true); L3Address destinationAddress @getter(_getDestinationAddress); // destination address L3Address sourceAddress @getter(_getSourceAddress); // source address int interfaceId = -1; // interface on which the datagram was received, or // should be sent (see ~InterfaceTable) short protocol @enum(IPProtocolId); // encapsulated protocol short hopLimit; // maximum hop count }
GenericNetworkProtocolControlInfo_Base is only useful if it gets subclassed, and GenericNetworkProtocolControlInfo is derived from it. The minimum code to be written for GenericNetworkProtocolControlInfo is the following:
class INET_API GenericNetworkProtocolControlInfo : public GenericNetworkProtocolControlInfo_Base { private: void copy(const GenericNetworkProtocolControlInfo& other) { ... }
public:
GenericNetworkProtocolControlInfo() : GenericNetworkProtocolControlInfo_Base() {}
GenericNetworkProtocolControlInfo(const GenericNetworkProtocolControlInfo& other) : GenericNetworkProtocolControlInfo_Base(other) {copy(other);}
GenericNetworkProtocolControlInfo& operator=(const GenericNetworkProtocolControlInfo& other) {if (this==&other) return *this; GenericNetworkProtocolControlInfo_Base::operator=(other); copy(other); return *this;}
virtual GenericNetworkProtocolControlInfo *dup() const override {return new GenericNetworkProtocolControlInfo(*this);}
// ADD CODE HERE to redefine and implement pure virtual functions from GenericNetworkProtocolControlInfo_Base
};
The following should go into a .cc (.cpp) file:
Register_Class(GenericNetworkProtocolControlInfo)
|
protected |
|
protected |
|
virtual |
|
virtual |
|
inlinevirtual |
Referenced by _getDestinationAddress().
|
virtual |
Referenced by inet::GenericNetworkProtocolControlInfo::getSourceAddress().
|
inlinevirtual |
Referenced by _getSourceAddress().
|
private |
|
inlineoverridevirtual |
Reimplemented in inet::GenericNetworkProtocolControlInfo.
|
virtual |
Reimplemented in inet::GenericNetworkProtocolControlInfo.
Referenced by inet::GenericNetworkProtocolControlInfo::getHopLimit().
|
virtual |
Reimplemented in inet::GenericNetworkProtocolControlInfo.
Referenced by inet::GenericNetworkProtocolControlInfo::getInterfaceId().
|
virtual |
|
protected |
Referenced by inet::GenericNetworkProtocolControlInfo::operator=().
|
protected |
|
overridevirtual |
|
overridevirtual |
|
virtual |
Reimplemented in inet::GenericNetworkProtocolControlInfo.
Referenced by inet::GenericNetworkProtocolControlInfo::setDestinationAddress().
|
virtual |
Reimplemented in inet::GenericNetworkProtocolControlInfo.
Referenced by inet::GenericNetworkProtocolControlInfo::setHopLimit().
|
virtual |
Reimplemented in inet::GenericNetworkProtocolControlInfo.
Referenced by inet::GenericNetworkProtocolControlInfo::setInterfaceId().
|
virtual |
|
virtual |
Reimplemented in inet::GenericNetworkProtocolControlInfo.
Referenced by inet::GenericNetworkProtocolControlInfo::setSourceAddress().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |