|
INET Framework for OMNeT++/OMNEST
|
00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.2 from ansa/igmp/IGMPTimer.msg. 00003 // 00004 00005 #ifndef _IGMPTIMER_M_H_ 00006 #define _IGMPTIMER_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 00035 enum IGMPTimerType { 00036 TIMER_INIT_GENERAL_QUERY = 1, 00037 TIMER_GENERAL_QUERY = 2, 00038 TIMER_OTHER_QUERIER_PRESENT = 3, 00039 TIMER_GROUP_MEMBERSHIP = 4, 00040 TIMER_LAST_MEMBER = 5 00041 }; 00042 00055 class IGMPTimer : public ::cMessage 00056 { 00057 protected: 00058 char timerKind_var; 00059 int count_var; 00060 int intID_var; 00061 IPAddress groupAddress_var; 00062 00063 private: 00064 void copy(const IGMPTimer& other); 00065 00066 protected: 00067 // protected and unimplemented operator==(), to prevent accidental usage 00068 bool operator==(const IGMPTimer&); 00069 00070 public: 00071 IGMPTimer(const char *name=NULL, int kind=0); 00072 IGMPTimer(const IGMPTimer& other); 00073 virtual ~IGMPTimer(); 00074 IGMPTimer& operator=(const IGMPTimer& other); 00075 virtual IGMPTimer *dup() const {return new IGMPTimer(*this);} 00076 virtual void parsimPack(cCommBuffer *b); 00077 virtual void parsimUnpack(cCommBuffer *b); 00078 00079 // field getter/setter methods 00080 virtual char getTimerKind() const; 00081 virtual void setTimerKind(char timerKind); 00082 virtual int getCount() const; 00083 virtual void setCount(int count); 00084 virtual int getIntID() const; 00085 virtual void setIntID(int intID); 00086 virtual IPAddress& getGroupAddress(); 00087 virtual const IPAddress& getGroupAddress() const {return const_cast<IGMPTimer*>(this)->getGroupAddress();} 00088 virtual void setGroupAddress(const IPAddress& groupAddress); 00089 }; 00090 00091 inline void doPacking(cCommBuffer *b, IGMPTimer& obj) {obj.parsimPack(b);} 00092 inline void doUnpacking(cCommBuffer *b, IGMPTimer& obj) {obj.parsimUnpack(b);} 00093 00094 00095 #endif // _IGMPTIMER_M_H_