INET Framework for OMNeT++/OMNEST
RIPTimer_m.h
Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.2 from ansa/rip/RIPTimer.msg.
00003 //
00004 
00005 #ifndef _RIPTIMER_M_H_
00006 #define _RIPTIMER_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 RIPTimerType {
00035     hello = 1,
00036     timeout = 2,
00037     garbage = 3,
00038     trigger = 4
00039 };
00040 
00051 class RIPTimer : public ::cMessage
00052 {
00053   protected:
00054     char timerKind_var;
00055     int intID_var;
00056 
00057   private:
00058     void copy(const RIPTimer& other);
00059 
00060   protected:
00061     // protected and unimplemented operator==(), to prevent accidental usage
00062     bool operator==(const RIPTimer&);
00063 
00064   public:
00065     RIPTimer(const char *name=NULL, int kind=0);
00066     RIPTimer(const RIPTimer& other);
00067     virtual ~RIPTimer();
00068     RIPTimer& operator=(const RIPTimer& other);
00069     virtual RIPTimer *dup() const {return new RIPTimer(*this);}
00070     virtual void parsimPack(cCommBuffer *b);
00071     virtual void parsimUnpack(cCommBuffer *b);
00072 
00073     // field getter/setter methods
00074     virtual char getTimerKind() const;
00075     virtual void setTimerKind(char timerKind);
00076     virtual int getIntID() const;
00077     virtual void setIntID(int intID);
00078 };
00079 
00080 inline void doPacking(cCommBuffer *b, RIPTimer& obj) {obj.parsimPack(b);}
00081 inline void doUnpacking(cCommBuffer *b, RIPTimer& obj) {obj.parsimUnpack(b);}
00082 
00083 
00084 #endif // _RIPTIMER_M_H_