Churn_m.h

Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.1 from common/Churn.msg.
00003 //
00004 
00005 #ifndef _CHURN_M_H_
00006 #define _CHURN_M_H_
00007 
00008 #include <omnetpp.h>
00009 
00010 // opp_msgc version check
00011 #define MSGC_VERSION 0x0401
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 <NodeHandle.h>
00018 // }}
00019 
00020 
00021 
00034 class ChurnMessage : public ::cPacket
00035 {
00036   protected:
00037     bool createNode_var;
00038     double lifetime_var;
00039     int contextPos_var;
00040     ::TransportAddress addr_var;
00041 
00042     // protected and unimplemented operator==(), to prevent accidental usage
00043     bool operator==(const ChurnMessage&);
00044 
00045   public:
00046     ChurnMessage(const char *name=NULL, int kind=0);
00047     ChurnMessage(const ChurnMessage& other);
00048     virtual ~ChurnMessage();
00049     ChurnMessage& operator=(const ChurnMessage& other);
00050     virtual ChurnMessage *dup() const {return new ChurnMessage(*this);}
00051     virtual void parsimPack(cCommBuffer *b);
00052     virtual void parsimUnpack(cCommBuffer *b);
00053 
00054     // field getter/setter methods
00055     virtual bool getCreateNode() const;
00056     virtual void setCreateNode(bool createNode_var);
00057     virtual double getLifetime() const;
00058     virtual void setLifetime(double lifetime_var);
00059     virtual int getContextPos() const;
00060     virtual void setContextPos(int contextPos_var);
00061     virtual TransportAddress& getAddr();
00062     virtual const TransportAddress& getAddr() const {return const_cast<ChurnMessage*>(this)->getAddr();}
00063     virtual void setAddr(const TransportAddress& addr_var);
00064 };
00065 
00066 inline void doPacking(cCommBuffer *b, ChurnMessage& obj) {obj.parsimPack(b);}
00067 inline void doUnpacking(cCommBuffer *b, ChurnMessage& obj) {obj.parsimUnpack(b);}
00068 
00079 class ParetoChurnMessage : public ::ChurnMessage
00080 {
00081   protected:
00082     double meanLifetime_var;
00083     double meanDeadtime_var;
00084 
00085     // protected and unimplemented operator==(), to prevent accidental usage
00086     bool operator==(const ParetoChurnMessage&);
00087 
00088   public:
00089     ParetoChurnMessage(const char *name=NULL, int kind=0);
00090     ParetoChurnMessage(const ParetoChurnMessage& other);
00091     virtual ~ParetoChurnMessage();
00092     ParetoChurnMessage& operator=(const ParetoChurnMessage& other);
00093     virtual ParetoChurnMessage *dup() const {return new ParetoChurnMessage(*this);}
00094     virtual void parsimPack(cCommBuffer *b);
00095     virtual void parsimUnpack(cCommBuffer *b);
00096 
00097     // field getter/setter methods
00098     virtual double getMeanLifetime() const;
00099     virtual void setMeanLifetime(double meanLifetime_var);
00100     virtual double getMeanDeadtime() const;
00101     virtual void setMeanDeadtime(double meanDeadtime_var);
00102 };
00103 
00104 inline void doPacking(cCommBuffer *b, ParetoChurnMessage& obj) {obj.parsimPack(b);}
00105 inline void doUnpacking(cCommBuffer *b, ParetoChurnMessage& obj) {obj.parsimUnpack(b);}
00106 
00107 
00108 #endif // _CHURN_M_H_