KBRTestMessage_m.h

Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.1 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 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 <OverlayKey.h>
00018 #include <IPvXAddress.h>
00019 #include <CommonMessages_m.h>
00020 // }}
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 
00082 class KbrTestCall : public ::BaseCallMessage
00083 {
00084   protected:
00085 
00086     // protected and unimplemented operator==(), to prevent accidental usage
00087     bool operator==(const KbrTestCall&);
00088 
00089   public:
00090     KbrTestCall(const char *name=NULL, int kind=0);
00091     KbrTestCall(const KbrTestCall& other);
00092     virtual ~KbrTestCall();
00093     KbrTestCall& operator=(const KbrTestCall& other);
00094     virtual KbrTestCall *dup() const {return new KbrTestCall(*this);}
00095     virtual void parsimPack(cCommBuffer *b);
00096     virtual void parsimUnpack(cCommBuffer *b);
00097 
00098     // field getter/setter methods
00099 };
00100 
00101 inline void doPacking(cCommBuffer *b, KbrTestCall& obj) {obj.parsimPack(b);}
00102 inline void doUnpacking(cCommBuffer *b, KbrTestCall& obj) {obj.parsimUnpack(b);}
00103 
00112 class KbrTestResponse : public ::BaseResponseMessage
00113 {
00114   protected:
00115 
00116     // protected and unimplemented operator==(), to prevent accidental usage
00117     bool operator==(const KbrTestResponse&);
00118 
00119   public:
00120     KbrTestResponse(const char *name=NULL, int kind=0);
00121     KbrTestResponse(const KbrTestResponse& other);
00122     virtual ~KbrTestResponse();
00123     KbrTestResponse& operator=(const KbrTestResponse& other);
00124     virtual KbrTestResponse *dup() const {return new KbrTestResponse(*this);}
00125     virtual void parsimPack(cCommBuffer *b);
00126     virtual void parsimUnpack(cCommBuffer *b);
00127 
00128     // field getter/setter methods
00129 };
00130 
00131 inline void doPacking(cCommBuffer *b, KbrTestResponse& obj) {obj.parsimPack(b);}
00132 inline void doUnpacking(cCommBuffer *b, KbrTestResponse& obj) {obj.parsimUnpack(b);}
00133 
00145 class KbrRpcContext : public ::cObject
00146 {
00147   protected:
00148     ::OverlayKey destKey_var;
00149     ::TransportAddress destAddr_var;
00150     bool measurementPhase_var;
00151 
00152     // protected and unimplemented operator==(), to prevent accidental usage
00153     bool operator==(const KbrRpcContext&);
00154 
00155   public:
00156     KbrRpcContext();
00157     KbrRpcContext(const KbrRpcContext& other);
00158     virtual ~KbrRpcContext();
00159     KbrRpcContext& operator=(const KbrRpcContext& other);
00160     virtual KbrRpcContext *dup() const {return new KbrRpcContext(*this);}
00161     virtual void parsimPack(cCommBuffer *b);
00162     virtual void parsimUnpack(cCommBuffer *b);
00163 
00164     // field getter/setter methods
00165     virtual OverlayKey& getDestKey();
00166     virtual const OverlayKey& getDestKey() const {return const_cast<KbrRpcContext*>(this)->getDestKey();}
00167     virtual void setDestKey(const OverlayKey& destKey_var);
00168     virtual TransportAddress& getDestAddr();
00169     virtual const TransportAddress& getDestAddr() const {return const_cast<KbrRpcContext*>(this)->getDestAddr();}
00170     virtual void setDestAddr(const TransportAddress& destAddr_var);
00171     virtual bool getMeasurementPhase() const;
00172     virtual void setMeasurementPhase(bool measurementPhase_var);
00173 };
00174 
00175 inline void doPacking(cCommBuffer *b, KbrRpcContext& obj) {obj.parsimPack(b);}
00176 inline void doUnpacking(cCommBuffer *b, KbrRpcContext& obj) {obj.parsimUnpack(b);}
00177 
00178 
00179 #endif // _KBRTESTMESSAGE_M_H_