INET Framework for OMNeT++/OMNEST
IPv6ControlInfo_m.h
Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.2 from networklayer/contract/IPv6ControlInfo.msg.
00003 //
00004 
00005 #ifndef _IPV6CONTROLINFO_M_H_
00006 #define _IPV6CONTROLINFO_M_H_
00007 
00008 #include <omnetpp.h>
00009 
00010 // opp_msgc version check
00011 #define MSGC_VERSION 0x0402
00012 #if (MSGC_VERSION!=OMNETPP_VERSION)
00013 #    error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help.
00014 #endif
00015 
00016 // cplusplus {{
00017 #include "IPv6Address.h"
00018 #include "IPProtocolId_m.h"
00019 // }}
00020 
00021 
00022 
00062 class IPv6ControlInfo_Base : public ::cObject
00063 {
00064   protected:
00065     int protocol_var;
00066     IPv6Address destAddr_var;
00067     IPv6Address srcAddr_var;
00068     short hopLimit_var;
00069     int interfaceId_var;
00070 
00071   private:
00072     void copy(const IPv6ControlInfo_Base& other);
00073 
00074   protected:
00075     // protected and unimplemented operator==(), to prevent accidental usage
00076     bool operator==(const IPv6ControlInfo_Base&);
00077     // make constructors protected to avoid instantiation
00078     IPv6ControlInfo_Base();
00079     IPv6ControlInfo_Base(const IPv6ControlInfo_Base& other);
00080     // make assignment operator protected to force the user override it
00081     IPv6ControlInfo_Base& operator=(const IPv6ControlInfo_Base& other);
00082 
00083   public:
00084     virtual ~IPv6ControlInfo_Base();
00085     virtual IPv6ControlInfo_Base *dup() const {throw cRuntimeError("You forgot to manually add a dup() function to class IPv6ControlInfo");}
00086     virtual void parsimPack(cCommBuffer *b);
00087     virtual void parsimUnpack(cCommBuffer *b);
00088 
00089     // field getter/setter methods
00090     virtual int getProtocol() const;
00091     virtual void setProtocol(int protocol);
00092     virtual IPv6Address& getDestAddr();
00093     virtual const IPv6Address& getDestAddr() const {return const_cast<IPv6ControlInfo_Base*>(this)->getDestAddr();}
00094     virtual void setDestAddr(const IPv6Address& destAddr);
00095     virtual IPv6Address& getSrcAddr();
00096     virtual const IPv6Address& getSrcAddr() const {return const_cast<IPv6ControlInfo_Base*>(this)->getSrcAddr();}
00097     virtual void setSrcAddr(const IPv6Address& srcAddr);
00098     virtual short getHopLimit() const;
00099     virtual void setHopLimit(short hopLimit);
00100     virtual int getInterfaceId() const;
00101     virtual void setInterfaceId(int interfaceId);
00102 };
00103 
00104 
00105 #endif // _IPV6CONTROLINFO_M_H_