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 #include <CommonMessages_m.h>
00021 // end cplusplus
00022 
00023 
00024 
00037 class KBRTestMessage : public cPacket
00038 {
00039   protected:
00040     int id_var;
00041     int seqNum_var;
00042     bool measurementPhase_var;
00043     IPvXAddress *visitedNodes_var; // array ptr
00044     unsigned int visitedNodes_arraysize;
00045 
00046     // protected and unimplemented operator==(), to prevent accidental usage
00047     bool operator==(const KBRTestMessage&);
00048 
00049   public:
00050     KBRTestMessage(const char *name=NULL, int kind=0);
00051     KBRTestMessage(const KBRTestMessage& other);
00052     virtual ~KBRTestMessage();
00053     KBRTestMessage& operator=(const KBRTestMessage& other);
00054     virtual KBRTestMessage *dup() const {return new KBRTestMessage(*this);}
00055     virtual void parsimPack(cCommBuffer *b);
00056     virtual void parsimUnpack(cCommBuffer *b);
00057 
00058     // field getter/setter methods
00059     virtual int getId() const;
00060     virtual void setId(int id_var);
00061     virtual int getSeqNum() const;
00062     virtual void setSeqNum(int seqNum_var);
00063     virtual bool getMeasurementPhase() const;
00064     virtual void setMeasurementPhase(bool measurementPhase_var);
00065     virtual void setVisitedNodesArraySize(unsigned int size);
00066     virtual unsigned int getVisitedNodesArraySize() const;
00067     virtual IPvXAddress& getVisitedNodes(unsigned int k);
00068     virtual const IPvXAddress& getVisitedNodes(unsigned int k) const {return const_cast<KBRTestMessage*>(this)->getVisitedNodes(k);}
00069     virtual void setVisitedNodes(unsigned int k, const IPvXAddress& visitedNodes_var);
00070 };
00071 
00072 inline void doPacking(cCommBuffer *b, KBRTestMessage& obj) {obj.parsimPack(b);}
00073 inline void doUnpacking(cCommBuffer *b, KBRTestMessage& obj) {obj.parsimUnpack(b);}
00074 
00085 class KbrTestCall : public BaseCallMessage
00086 {
00087   protected:
00088 
00089     // protected and unimplemented operator==(), to prevent accidental usage
00090     bool operator==(const KbrTestCall&);
00091 
00092   public:
00093     KbrTestCall(const char *name=NULL, int kind=0);
00094     KbrTestCall(const KbrTestCall& other);
00095     virtual ~KbrTestCall();
00096     KbrTestCall& operator=(const KbrTestCall& other);
00097     virtual KbrTestCall *dup() const {return new KbrTestCall(*this);}
00098     virtual void parsimPack(cCommBuffer *b);
00099     virtual void parsimUnpack(cCommBuffer *b);
00100 
00101     // field getter/setter methods
00102 };
00103 
00104 inline void doPacking(cCommBuffer *b, KbrTestCall& obj) {obj.parsimPack(b);}
00105 inline void doUnpacking(cCommBuffer *b, KbrTestCall& obj) {obj.parsimUnpack(b);}
00106 
00116 class KbrTestResponse : public BaseResponseMessage
00117 {
00118   protected:
00119 
00120     // protected and unimplemented operator==(), to prevent accidental usage
00121     bool operator==(const KbrTestResponse&);
00122 
00123   public:
00124     KbrTestResponse(const char *name=NULL, int kind=0);
00125     KbrTestResponse(const KbrTestResponse& other);
00126     virtual ~KbrTestResponse();
00127     KbrTestResponse& operator=(const KbrTestResponse& other);
00128     virtual KbrTestResponse *dup() const {return new KbrTestResponse(*this);}
00129     virtual void parsimPack(cCommBuffer *b);
00130     virtual void parsimUnpack(cCommBuffer *b);
00131 
00132     // field getter/setter methods
00133 };
00134 
00135 inline void doPacking(cCommBuffer *b, KbrTestResponse& obj) {obj.parsimPack(b);}
00136 inline void doUnpacking(cCommBuffer *b, KbrTestResponse& obj) {obj.parsimUnpack(b);}
00137 
00148 class KbrRpcContext : public cObject
00149 {
00150   protected:
00151     OverlayKey destKey_var;
00152     bool measurementPhase_var;
00153 
00154     // protected and unimplemented operator==(), to prevent accidental usage
00155     bool operator==(const KbrRpcContext&);
00156 
00157   public:
00158     KbrRpcContext();
00159     KbrRpcContext(const KbrRpcContext& other);
00160     virtual ~KbrRpcContext();
00161     KbrRpcContext& operator=(const KbrRpcContext& other);
00162     virtual KbrRpcContext *dup() const {return new KbrRpcContext(*this);}
00163     virtual void parsimPack(cCommBuffer *b);
00164     virtual void parsimUnpack(cCommBuffer *b);
00165 
00166     // field getter/setter methods
00167     virtual OverlayKey& getDestKey();
00168     virtual const OverlayKey& getDestKey() const {return const_cast<KbrRpcContext*>(this)->getDestKey();}
00169     virtual void setDestKey(const OverlayKey& destKey_var);
00170     virtual bool getMeasurementPhase() const;
00171     virtual void setMeasurementPhase(bool measurementPhase_var);
00172 };
00173 
00174 inline void doPacking(cCommBuffer *b, KbrRpcContext& obj) {obj.parsimPack(b);}
00175 inline void doUnpacking(cCommBuffer *b, KbrRpcContext& obj) {obj.parsimUnpack(b);}
00176 
00177 
00178 #endif // _KBRTESTMESSAGE_M_H_

Generated on Tue Sep 8 17:26:53 2009 for OverSim by  doxygen 1.5.8