INET Framework for OMNeT++/OMNEST
PIMTimer_m.h
Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.2 from ansa/pim/PIMTimer.msg.
00003 //
00004 
00005 #ifndef _PIMTIMER_M_H_
00006 #define _PIMTIMER_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 
00048 enum PIMTimerType {
00049     HelloTimer = 1,
00050     TriggeredHelloDelay = 2,
00051     NeighborLivnessTimer = 3,
00052     AssertTimer = 4,
00053     PruneTimer = 5,
00054     PrunePendingTimer = 6,
00055     GrafRetryTimer = 7,
00056     UpstreamOverrideTimer = 8,
00057     PruneLimitTimer = 9,
00058     SourceActiveTimer = 10,
00059     StateRefreshTimer = 11
00060 };
00061 
00071 class PIMTimer : public ::cMessage
00072 {
00073   protected:
00074     char timerKind_var;
00075 
00076   private:
00077     void copy(const PIMTimer& other);
00078 
00079   protected:
00080     // protected and unimplemented operator==(), to prevent accidental usage
00081     bool operator==(const PIMTimer&);
00082 
00083   public:
00084     PIMTimer(const char *name=NULL, int kind=0);
00085     PIMTimer(const PIMTimer& other);
00086     virtual ~PIMTimer();
00087     PIMTimer& operator=(const PIMTimer& other);
00088     virtual PIMTimer *dup() const {return new PIMTimer(*this);}
00089     virtual void parsimPack(cCommBuffer *b);
00090     virtual void parsimUnpack(cCommBuffer *b);
00091 
00092     // field getter/setter methods
00093     virtual char getTimerKind() const;
00094     virtual void setTimerKind(char timerKind);
00095 };
00096 
00097 inline void doPacking(cCommBuffer *b, PIMTimer& obj) {obj.parsimPack(b);}
00098 inline void doUnpacking(cCommBuffer *b, PIMTimer& obj) {obj.parsimUnpack(b);}
00099 
00100 
00101 #endif // _PIMTIMER_M_H_