INET Framework for OMNeT++/OMNEST
OSPFTimer_m.h
Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.2 from networklayer/ospfv2/OSPFTimer.msg.
00003 //
00004 
00005 #ifndef _OSPFTIMER_M_H_
00006 #define _OSPFTIMER_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 "INETDefs.h"
00018 // }}
00019 
00020 
00021 
00040 enum OSPFTimerType {
00041     InterfaceHelloTimer = 0,
00042     InterfaceWaitTimer = 1,
00043     InterfaceAcknowledgementTimer = 3,
00044     NeighborInactivityTimer = 4,
00045     NeighborPollTimer = 5,
00046     NeighborDDRetransmissionTimer = 6,
00047     NeighborUpdateRetransmissionTimer = 7,
00048     NeighborRequestRetransmissionTimer = 8,
00049     DatabaseAgeTimer = 9
00050 };
00051 
00061 class OSPFTimer : public ::cMessage
00062 {
00063   protected:
00064     char timerKind_var;
00065 
00066   private:
00067     void copy(const OSPFTimer& other);
00068 
00069   protected:
00070     // protected and unimplemented operator==(), to prevent accidental usage
00071     bool operator==(const OSPFTimer&);
00072 
00073   public:
00074     OSPFTimer(const char *name=NULL, int kind=0);
00075     OSPFTimer(const OSPFTimer& other);
00076     virtual ~OSPFTimer();
00077     OSPFTimer& operator=(const OSPFTimer& other);
00078     virtual OSPFTimer *dup() const {return new OSPFTimer(*this);}
00079     virtual void parsimPack(cCommBuffer *b);
00080     virtual void parsimUnpack(cCommBuffer *b);
00081 
00082     // field getter/setter methods
00083     virtual char getTimerKind() const;
00084     virtual void setTimerKind(char timerKind);
00085 };
00086 
00087 inline void doPacking(cCommBuffer *b, OSPFTimer& obj) {obj.parsimPack(b);}
00088 inline void doUnpacking(cCommBuffer *b, OSPFTimer& obj) {obj.parsimUnpack(b);}
00089 
00090 
00091 #endif // _OSPFTIMER_M_H_