INET Framework for OMNeT++/OMNEST
|
Class generated from inet/linklayer/common/SimpleLinkLayerControlInfo.msg:10
by nedtool.
More...
#include <SimpleLinkLayerControlInfo_m.h>
Public Member Functions | |
virtual | ~SimpleLinkLayerControlInfo_Base () |
virtual SimpleLinkLayerControlInfo_Base * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
virtual MACAddress & | getSrc () |
virtual const MACAddress & | getSrc () const |
virtual void | setSrc (const MACAddress &src) |
virtual MACAddress & | getDest () |
virtual const MACAddress & | getDest () const |
virtual void | setDest (const MACAddress &dest) |
virtual int | getInterfaceId () const |
virtual void | setInterfaceId (int interfaceId) |
Protected Member Functions | |
bool | operator== (const SimpleLinkLayerControlInfo_Base &) |
SimpleLinkLayerControlInfo_Base () | |
SimpleLinkLayerControlInfo_Base (const SimpleLinkLayerControlInfo_Base &other) | |
SimpleLinkLayerControlInfo_Base & | operator= (const SimpleLinkLayerControlInfo_Base &other) |
Protected Attributes | |
MACAddress | src |
MACAddress | dest |
int | interfaceId |
Private Member Functions | |
void | copy (const SimpleLinkLayerControlInfo_Base &other) |
Class generated from inet/linklayer/common/SimpleLinkLayerControlInfo.msg:10
by nedtool.
class SimpleLinkLayerControlInfo { @customize(true);
MACAddress src; // can be left empty when sending MACAddress dest; int interfaceId; }
SimpleLinkLayerControlInfo_Base is only useful if it gets subclassed, and SimpleLinkLayerControlInfo is derived from it. The minimum code to be written for SimpleLinkLayerControlInfo is the following:
class INET_API SimpleLinkLayerControlInfo : public SimpleLinkLayerControlInfo_Base { private: void copy(const SimpleLinkLayerControlInfo& other) { ... }
public: SimpleLinkLayerControlInfo() : SimpleLinkLayerControlInfo_Base() {} SimpleLinkLayerControlInfo(const SimpleLinkLayerControlInfo& other) : SimpleLinkLayerControlInfo_Base(other) {copy(other);} SimpleLinkLayerControlInfo& operator=(const SimpleLinkLayerControlInfo& other) {if (this==&other) return *this; SimpleLinkLayerControlInfo_Base::operator=(other); copy(other); return *this;} virtual SimpleLinkLayerControlInfo *dup() const override {return new SimpleLinkLayerControlInfo(*this);} // ADD CODE HERE to redefine and implement pure virtual functions from SimpleLinkLayerControlInfo_Base };
The following should go into a .cc (.cpp) file:
Register_Class(SimpleLinkLayerControlInfo)
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented in inet::SimpleLinkLayerControlInfo.
|
virtual |
|
inlinevirtual |
Referenced by getDest().
|
virtual |
Reimplemented in inet::SimpleLinkLayerControlInfo.
Referenced by inet::SimpleLinkLayerControlInfo::getInterfaceId().
|
virtual |
|
inlinevirtual |
Referenced by getSrc().
|
protected |
Referenced by inet::SimpleLinkLayerControlInfo::operator=().
|
protected |
|
overridevirtual |
|
overridevirtual |
|
virtual |
|
virtual |
Reimplemented in inet::SimpleLinkLayerControlInfo.
Referenced by inet::SimpleLinkLayerControlInfo::setInterfaceId().
|
virtual |
|
protected |
|
protected |
|
protected |