KBRTestMessage_m.h

Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.0 from applications/kbrtestapp/KBRTestMessage.msg.
00003 //
00004 
00005 #ifndef _KBRTESTMESSAGE_M_H_
00006 #define _KBRTESTMESSAGE_M_H_
00007 
00008 #include <omnetpp.h>
00009 
00010 // opp_msgc version check
00011 #define MSGC_VERSION 0x0400
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 {{ ... }} section:
00017 
00018 #include <OverlayKey.h>
00019 #include <IPvXAddress.h>
00020 // end cplusplus
00021 
00022 
00023 
00036 class KBRTestMessage : public cPacket
00037 {
00038   protected:
00039     int id_var;
00040     int seqNum_var;
00041     bool measurementPhase_var;
00042     IPvXAddress *visitedNodes_var; // array ptr
00043     unsigned int visitedNodes_arraysize;
00044 
00045     // protected and unimplemented operator==(), to prevent accidental usage
00046     bool operator==(const KBRTestMessage&);
00047 
00048   public:
00049     KBRTestMessage(const char *name=NULL, int kind=0);
00050     KBRTestMessage(const KBRTestMessage& other);
00051     virtual ~KBRTestMessage();
00052     KBRTestMessage& operator=(const KBRTestMessage& other);
00053     virtual KBRTestMessage *dup() const {return new KBRTestMessage(*this);}
00054     virtual void parsimPack(cCommBuffer *b);
00055     virtual void parsimUnpack(cCommBuffer *b);
00056 
00057     // field getter/setter methods
00058     virtual int getId() const;
00059     virtual void setId(int id_var);
00060     virtual int getSeqNum() const;
00061     virtual void setSeqNum(int seqNum_var);
00062     virtual bool getMeasurementPhase() const;
00063     virtual void setMeasurementPhase(bool measurementPhase_var);
00064     virtual void setVisitedNodesArraySize(unsigned int size);
00065     virtual unsigned int getVisitedNodesArraySize() const;
00066     virtual IPvXAddress& getVisitedNodes(unsigned int k);
00067     virtual const IPvXAddress& getVisitedNodes(unsigned int k) const {return const_cast<KBRTestMessage*>(this)->getVisitedNodes(k);}
00068     virtual void setVisitedNodes(unsigned int k, const IPvXAddress& visitedNodes_var);
00069 };
00070 
00071 inline void doPacking(cCommBuffer *b, KBRTestMessage& obj) {obj.parsimPack(b);}
00072 inline void doUnpacking(cCommBuffer *b, KBRTestMessage& obj) {obj.parsimUnpack(b);}
00073 
00074 
00075 #endif // _KBRTESTMESSAGE_M_H_

Generated on Fri Mar 20 18:40:25 2009 for OverSim by  doxygen 1.5.5