#include <IPControlInfo_m.h>
Inheritance diagram for IPControlInfo_Base:
IPControlInfo.msg
by opp_msgc. class IPControlInfo { properties: omitGetVerb = true; customize = true; fields: IPAddress destAddr; IPAddress srcAddr; int interfaceId = -1;
short protocol enum(IPProtocolId); unsigned char diffServCodePoint; short timeToLive; bool dontFragment; };
IPControlInfo_Base is only useful if it gets subclassed, and IPControlInfo is derived from it. The minimum code to be written for IPControlInfo is the following:
class IPControlInfo : public IPControlInfo_Base { public: IPControlInfo() : IPControlInfo_Base() {} IPControlInfo(const IPControlInfo& other) : IPControlInfo_Base() {operator=(other);} IPControlInfo& operator=(const IPControlInfo& other) {IPControlInfo_Base::operator=(other); return *this;} virtual cPolymorphic *dup() const {return new IPControlInfo(*this);} // ADD CODE HERE to redefine and implement pure virtual functions from IPControlInfo_Base };
The following should go into a .cc (.cpp) file:
Register_Class(IPControlInfo);
Public Member Functions | |
virtual | ~IPControlInfo_Base () |
virtual cPolymorphic * | dup () const |
virtual void | netPack (cCommBuffer *b) |
virtual void | netUnpack (cCommBuffer *b) |
virtual IPAddress & | destAddr () |
virtual const IPAddress & | destAddr () const |
virtual void | setDestAddr (const IPAddress &destAddr_var) |
virtual IPAddress & | srcAddr () |
virtual const IPAddress & | srcAddr () const |
virtual void | setSrcAddr (const IPAddress &srcAddr_var) |
virtual int | interfaceId () const |
virtual void | setInterfaceId (int interfaceId_var) |
virtual short | protocol () const |
virtual void | setProtocol (short protocol_var) |
virtual unsigned char | diffServCodePoint () const |
virtual void | setDiffServCodePoint (unsigned char diffServCodePoint_var) |
virtual short | timeToLive () const |
virtual void | setTimeToLive (short timeToLive_var) |
virtual bool | dontFragment () const |
virtual void | setDontFragment (bool dontFragment_var) |
Protected Member Functions | |
bool | operator== (const IPControlInfo_Base &) |
IPControlInfo_Base () | |
IPControlInfo_Base (const IPControlInfo_Base &other) | |
IPControlInfo_Base & | operator= (const IPControlInfo_Base &other) |
Protected Attributes | |
IPAddress | destAddr_var |
IPAddress | srcAddr_var |
int | interfaceId_var |
short | protocol_var |
unsigned char | diffServCodePoint_var |
short | timeToLive_var |
bool | dontFragment_var |
IPControlInfo_Base::IPControlInfo_Base | ( | ) | [protected] |
IPControlInfo_Base::IPControlInfo_Base | ( | const IPControlInfo_Base & | other | ) | [protected] |
virtual IPControlInfo_Base::~IPControlInfo_Base | ( | ) | [virtual] |
virtual const IPAddress& IPControlInfo_Base::destAddr | ( | ) | const [inline, virtual] |
virtual IPAddress& IPControlInfo_Base::destAddr | ( | ) | [virtual] |
virtual unsigned char IPControlInfo_Base::diffServCodePoint | ( | ) | const [virtual] |
virtual bool IPControlInfo_Base::dontFragment | ( | ) | const [virtual] |
virtual cPolymorphic* IPControlInfo_Base::dup | ( | ) | const [inline, virtual] |
virtual int IPControlInfo_Base::interfaceId | ( | ) | const [virtual] |
virtual void IPControlInfo_Base::netPack | ( | cCommBuffer * | b | ) | [virtual] |
virtual void IPControlInfo_Base::netUnpack | ( | cCommBuffer * | b | ) | [virtual] |
IPControlInfo_Base& IPControlInfo_Base::operator= | ( | const IPControlInfo_Base & | other | ) | [protected] |
bool IPControlInfo_Base::operator== | ( | const IPControlInfo_Base & | ) | [protected] |
virtual short IPControlInfo_Base::protocol | ( | ) | const [virtual] |
virtual void IPControlInfo_Base::setDestAddr | ( | const IPAddress & | destAddr_var | ) | [virtual] |
virtual void IPControlInfo_Base::setDiffServCodePoint | ( | unsigned char | diffServCodePoint_var | ) | [virtual] |
virtual void IPControlInfo_Base::setDontFragment | ( | bool | dontFragment_var | ) | [virtual] |
virtual void IPControlInfo_Base::setInterfaceId | ( | int | interfaceId_var | ) | [virtual] |
virtual void IPControlInfo_Base::setProtocol | ( | short | protocol_var | ) | [virtual] |
virtual void IPControlInfo_Base::setSrcAddr | ( | const IPAddress & | srcAddr_var | ) | [virtual] |
virtual void IPControlInfo_Base::setTimeToLive | ( | short | timeToLive_var | ) | [virtual] |
virtual const IPAddress& IPControlInfo_Base::srcAddr | ( | ) | const [inline, virtual] |
virtual IPAddress& IPControlInfo_Base::srcAddr | ( | ) | [virtual] |
virtual short IPControlInfo_Base::timeToLive | ( | ) | const [virtual] |
IPAddress IPControlInfo_Base::destAddr_var [protected] |
unsigned char IPControlInfo_Base::diffServCodePoint_var [protected] |
bool IPControlInfo_Base::dontFragment_var [protected] |
int IPControlInfo_Base::interfaceId_var [protected] |
short IPControlInfo_Base::protocol_var [protected] |
IPAddress IPControlInfo_Base::srcAddr_var [protected] |
short IPControlInfo_Base::timeToLive_var [protected] |