|
INET Framework for OMNeT++/OMNEST
|
00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.2 from networklayer/ipv4/ControlManetRouting.msg. 00003 // 00004 00005 #ifndef _CONTROLMANETROUTING_M_H_ 00006 #define _CONTROLMANETROUTING_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 "IPAddress.h" 00018 // }} 00019 00020 00021 00034 enum ManetControlType { 00035 MANET_ROUTE_NO_OPTION = 0, 00036 MANET_ROUTE_UPDATE = 1, 00037 MANET_ROUTE_NOROUTE = 2 00038 }; 00039 00051 class ControlManetRouting : public ::cPacket 00052 { 00053 protected: 00054 IPAddress srcAddress_var; 00055 IPAddress destAddress_var; 00056 int optionCode_var; 00057 00058 private: 00059 void copy(const ControlManetRouting& other); 00060 00061 protected: 00062 // protected and unimplemented operator==(), to prevent accidental usage 00063 bool operator==(const ControlManetRouting&); 00064 00065 public: 00066 ControlManetRouting(const char *name=NULL, int kind=0); 00067 ControlManetRouting(const ControlManetRouting& other); 00068 virtual ~ControlManetRouting(); 00069 ControlManetRouting& operator=(const ControlManetRouting& other); 00070 virtual ControlManetRouting *dup() const {return new ControlManetRouting(*this);} 00071 virtual void parsimPack(cCommBuffer *b); 00072 virtual void parsimUnpack(cCommBuffer *b); 00073 00074 // field getter/setter methods 00075 virtual IPAddress& getSrcAddress(); 00076 virtual const IPAddress& getSrcAddress() const {return const_cast<ControlManetRouting*>(this)->getSrcAddress();} 00077 virtual void setSrcAddress(const IPAddress& srcAddress); 00078 virtual IPAddress& getDestAddress(); 00079 virtual const IPAddress& getDestAddress() const {return const_cast<ControlManetRouting*>(this)->getDestAddress();} 00080 virtual void setDestAddress(const IPAddress& destAddress); 00081 virtual int getOptionCode() const; 00082 virtual void setOptionCode(int optionCode); 00083 }; 00084 00085 inline void doPacking(cCommBuffer *b, ControlManetRouting& obj) {obj.parsimPack(b);} 00086 inline void doUnpacking(cCommBuffer *b, ControlManetRouting& obj) {obj.parsimUnpack(b);} 00087 00088 00089 #endif // _CONTROLMANETROUTING_M_H_