CommonMessages_m.h

Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.0 from common/CommonMessages.msg.
00003 //
00004 
00005 #ifndef _COMMONMESSAGES_M_H_
00006 #define _COMMONMESSAGES_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 <NodeHandle.h>
00020 #include <IPvXAddress.h>
00021 #include <TransportAddress.h>
00022 #include <BinaryValue.h>
00023 #include <Vector2D.h>
00024 #include <DHTDataStorage.h>
00025 #include <OverSimMessage.h>
00026 
00027 #define KEY_L OverlayKey::getLength()
00028 
00029 static const int TYPE_L = 8;
00030 static const int IPADDR_L = 32;
00031 static const int UDPPORT_L = 16;
00032 static const int HOPCOUNT_L = 16;
00033 static const int NONCE_L = 32;
00034 static const int COMP_L = 16;
00035 static const int NUMSIBLINGS_L = 8;
00036 static const int NEIGHBORSFLAG_L = 8;
00037 static const int RESPONSEFLAG_L = 8;
00038 static const int TRYAGAINFLAG_L = 8;
00039 static const int TIER_L = 8;
00040 static const int ARRAYSIZE_L = 8;
00041 static const int ROUTINGTYPE_L = 8;
00042 
00043 #define NODEHANDLE_L (IPADDR_L + UDPPORT_L + KEY_L)
00044 #define TRANSPORTADDRESS_L (IPADDR_L + UDPPORT_L)
00045 
00046 #define BASEOVERLAY_L(msg) TYPE_L
00047 #define BASEROUTE_L(msg) (BASEOVERLAY_L(msg) + NODEHANDLE_L + KEY_L + \
00048                           HOPCOUNT_L + ROUTINGTYPE_L +\
00049                           ARRAYSIZE_L + (msg->getVisitedHopsArraySize() *\
00050                           TRANSPORTADDRESS_L) +\
00051                           ARRAYSIZE_L + (msg->getNextHopsArraySize() *\
00052                           TRANSPORTADDRESS_L) +\
00053                           ARRAYSIZE_L + (msg->getHintsArraySize() *\
00054                           NODEHANDLE_L))
00055 #define BASEAPPDATA_L(msg) (BASEOVERLAY_L(msg) + 2*COMP_L)
00056 #define BASERPC_L(msg) (BASEOVERLAY_L(msg) + NONCE_L + NODEHANDLE_L + \
00057                         TIER_L)
00058 #define BASECALL_L(msg) BASERPC_L(msg)
00059 #define BASERESPONSE_L(msg) BASERPC_L(msg)
00060 #define FINDNODECALL_L(msg) (BASECALL_L(msg) + KEY_L)
00061 #define FINDNODERESPONSE_L(msg) (BASERESPONSE_L(msg) + NEIGHBORSFLAG_L + \
00062                   (msg->getClosestNodesArraySize() * NODEHANDLE_L))
00063 #define FAILEDNODECALL_L(msg) (BASECALL_L(msg) + IPADDR_L + UDPPORT_L)
00064 #define FAILEDNODERESPONSE_L(msg) (BASERESPONSE_L(msg) + TRYAGAINFLAG_L)
00065 #define PINGCALL_L(msg) BASECALL_L(msg)
00066 #define PINGRESPONSE_L(msg) BASERESPONSE_L(msg)
00067 #define BOOTSTRAPPINGCALL_L(msg) BASECALL_L(msg)
00068 #define BOOTSTRAPPINGRESPONSE_L(msg) BASERESPONSE_L(msg)
00069 #define NEXTHOPCALL_L(msg) BASECALL_L(msg)
00070 #define NEXTHOPRESPONSE_L(msg) BASERESPONSE_L(msg)
00071 // end cplusplus
00072 
00073 
00074 
00088 enum BaseOverlayMessageType {
00089     OVERLAYSIGNALING = 0,
00090     RPC = 1,
00091     APPDATA = 2,
00092     OVERLAYROUTE = 3
00093 };
00094 
00110 enum CompType {
00111     INVALID_COMP = 0,
00112     OVERLAY_COMP = 1,
00113     TIER1_COMP = 2,
00114     TIER2_COMP = 3,
00115     TIER3_COMP = 4,
00116     BOOTSTRAPLIST_COMP = 5
00117 };
00118 
00135 enum RoutingType {
00136     NO_OVERLAY_ROUTING = 0,
00137     DEFAULT_ROUTING = 1,
00138     ITERATIVE_ROUTING = 2,
00139     EXHAUSTIVE_ITERATIVE_ROUTING = 3,
00140     SEMI_RECURSIVE_ROUTING = 4,
00141     FULL_RECURSIVE_ROUTING = 5,
00142     RECURSIVE_SOURCE_ROUTING = 6
00143 };
00144 
00158 enum TransportType {
00159     INVALID_TRANSPORT = 0,
00160     INTERNAL_TRANSPORT = 1,
00161     UDP_TRANSPORT = 2,
00162     ROUTE_TRANSPORT = 3
00163 };
00164 
00180 enum CommonAPIMessageType {
00181     COMMON_API_UNDEFINED = 0,
00182     KBR_ROUTE = 1,
00183     KBR_DELIVER = 2,
00184     KBR_FORWARD = 3,
00185     KBR_FORWARD_RESPONSE = 4,
00186     KBR_UPDATE = 5
00187 };
00188 
00202 enum StatType {
00203     MAINTENANCE_STAT = 0,
00204     APP_DATA_STAT = 1,
00205     APP_LOOKUP_STAT = 2
00206 };
00207 
00224 enum GameAPIMessageCommand {
00225     MOVEMENT_INDICATION = 0,
00226     MOVEMENT_REQUEST = 1,
00227     NEIGHBOR_UPDATE = 2,
00228     RESIZE_AOI = 3,
00229     GAMEEVENT_CHAT = 4,
00230     GAMEEVENT_SNOW = 5,
00231     GAMEEVENT_FROZEN = 6
00232 };
00233 
00244 class BaseOverlayMessage : public OverSimMessage
00245 {
00246   protected:
00247     int type_var;
00248     int statType_var;
00249 
00250     // protected and unimplemented operator==(), to prevent accidental usage
00251     bool operator==(const BaseOverlayMessage&);
00252 
00253   public:
00254     BaseOverlayMessage(const char *name=NULL, int kind=0);
00255     BaseOverlayMessage(const BaseOverlayMessage& other);
00256     virtual ~BaseOverlayMessage();
00257     BaseOverlayMessage& operator=(const BaseOverlayMessage& other);
00258     virtual BaseOverlayMessage *dup() const {return new BaseOverlayMessage(*this);}
00259     virtual void parsimPack(cCommBuffer *b);
00260     virtual void parsimUnpack(cCommBuffer *b);
00261 
00262     // field getter/setter methods
00263     virtual int getType() const;
00264     virtual void setType(int type_var);
00265     virtual int getStatType() const;
00266     virtual void setStatType(int statType_var);
00267 };
00268 
00269 inline void doPacking(cCommBuffer *b, BaseOverlayMessage& obj) {obj.parsimPack(b);}
00270 inline void doUnpacking(cCommBuffer *b, BaseOverlayMessage& obj) {obj.parsimUnpack(b);}
00271 
00289 class BaseRouteMessage : public BaseOverlayMessage
00290 {
00291   protected:
00292     OverlayKey destKey_var;
00293     NodeHandle srcNode_var;
00294     int routingType_var;
00295     int hopCount_var;
00296     TransportAddress *visitedHops_var; // array ptr
00297     unsigned int visitedHops_arraysize;
00298     TransportAddress *nextHops_var; // array ptr
00299     unsigned int nextHops_arraysize;
00300     NodeHandle *hints_var; // array ptr
00301     unsigned int hints_arraysize;
00302     simtime_t hopStamp_var;
00303     simtime_t *hopDelay_var; // array ptr
00304     unsigned int hopDelay_arraysize;
00305 
00306     // protected and unimplemented operator==(), to prevent accidental usage
00307     bool operator==(const BaseRouteMessage&);
00308 
00309   public:
00310     BaseRouteMessage(const char *name=NULL, int kind=0);
00311     BaseRouteMessage(const BaseRouteMessage& other);
00312     virtual ~BaseRouteMessage();
00313     BaseRouteMessage& operator=(const BaseRouteMessage& other);
00314     virtual BaseRouteMessage *dup() const {return new BaseRouteMessage(*this);}
00315     virtual void parsimPack(cCommBuffer *b);
00316     virtual void parsimUnpack(cCommBuffer *b);
00317 
00318     // field getter/setter methods
00319     virtual OverlayKey& getDestKey();
00320     virtual const OverlayKey& getDestKey() const {return const_cast<BaseRouteMessage*>(this)->getDestKey();}
00321     virtual void setDestKey(const OverlayKey& destKey_var);
00322     virtual NodeHandle& getSrcNode();
00323     virtual const NodeHandle& getSrcNode() const {return const_cast<BaseRouteMessage*>(this)->getSrcNode();}
00324     virtual void setSrcNode(const NodeHandle& srcNode_var);
00325     virtual int getRoutingType() const;
00326     virtual void setRoutingType(int routingType_var);
00327     virtual int getHopCount() const;
00328     virtual void setHopCount(int hopCount_var);
00329     virtual void setVisitedHopsArraySize(unsigned int size);
00330     virtual unsigned int getVisitedHopsArraySize() const;
00331     virtual TransportAddress& getVisitedHops(unsigned int k);
00332     virtual const TransportAddress& getVisitedHops(unsigned int k) const {return const_cast<BaseRouteMessage*>(this)->getVisitedHops(k);}
00333     virtual void setVisitedHops(unsigned int k, const TransportAddress& visitedHops_var);
00334     virtual void setNextHopsArraySize(unsigned int size);
00335     virtual unsigned int getNextHopsArraySize() const;
00336     virtual TransportAddress& getNextHops(unsigned int k);
00337     virtual const TransportAddress& getNextHops(unsigned int k) const {return const_cast<BaseRouteMessage*>(this)->getNextHops(k);}
00338     virtual void setNextHops(unsigned int k, const TransportAddress& nextHops_var);
00339     virtual void setHintsArraySize(unsigned int size);
00340     virtual unsigned int getHintsArraySize() const;
00341     virtual NodeHandle& getHints(unsigned int k);
00342     virtual const NodeHandle& getHints(unsigned int k) const {return const_cast<BaseRouteMessage*>(this)->getHints(k);}
00343     virtual void setHints(unsigned int k, const NodeHandle& hints_var);
00344     virtual simtime_t getHopStamp() const;
00345     virtual void setHopStamp(simtime_t hopStamp_var);
00346     virtual void setHopDelayArraySize(unsigned int size);
00347     virtual unsigned int getHopDelayArraySize() const;
00348     virtual simtime_t getHopDelay(unsigned int k) const;
00349     virtual void setHopDelay(unsigned int k, simtime_t hopDelay_var);
00350 };
00351 
00352 inline void doPacking(cCommBuffer *b, BaseRouteMessage& obj) {obj.parsimPack(b);}
00353 inline void doUnpacking(cCommBuffer *b, BaseRouteMessage& obj) {obj.parsimUnpack(b);}
00354 
00365 class BaseAppDataMessage : public BaseOverlayMessage
00366 {
00367   protected:
00368     int destComp_var;
00369     int srcComp_var;
00370 
00371     // protected and unimplemented operator==(), to prevent accidental usage
00372     bool operator==(const BaseAppDataMessage&);
00373 
00374   public:
00375     BaseAppDataMessage(const char *name=NULL, int kind=0);
00376     BaseAppDataMessage(const BaseAppDataMessage& other);
00377     virtual ~BaseAppDataMessage();
00378     BaseAppDataMessage& operator=(const BaseAppDataMessage& other);
00379     virtual BaseAppDataMessage *dup() const {return new BaseAppDataMessage(*this);}
00380     virtual void parsimPack(cCommBuffer *b);
00381     virtual void parsimUnpack(cCommBuffer *b);
00382 
00383     // field getter/setter methods
00384     virtual int getDestComp() const;
00385     virtual void setDestComp(int destComp_var);
00386     virtual int getSrcComp() const;
00387     virtual void setSrcComp(int srcComp_var);
00388 };
00389 
00390 inline void doPacking(cCommBuffer *b, BaseAppDataMessage& obj) {obj.parsimPack(b);}
00391 inline void doUnpacking(cCommBuffer *b, BaseAppDataMessage& obj) {obj.parsimUnpack(b);}
00392 
00403 class BaseRpcMessage : public BaseOverlayMessage
00404 {
00405   protected:
00406     unsigned int nonce_var;
00407     NodeHandle srcNode_var;
00408 
00409     // protected and unimplemented operator==(), to prevent accidental usage
00410     bool operator==(const BaseRpcMessage&);
00411 
00412   public:
00413     BaseRpcMessage(const char *name=NULL, int kind=0);
00414     BaseRpcMessage(const BaseRpcMessage& other);
00415     virtual ~BaseRpcMessage();
00416     BaseRpcMessage& operator=(const BaseRpcMessage& other);
00417     virtual BaseRpcMessage *dup() const {return new BaseRpcMessage(*this);}
00418     virtual void parsimPack(cCommBuffer *b);
00419     virtual void parsimUnpack(cCommBuffer *b);
00420 
00421     // field getter/setter methods
00422     virtual unsigned int getNonce() const;
00423     virtual void setNonce(unsigned int nonce_var);
00424     virtual NodeHandle& getSrcNode();
00425     virtual const NodeHandle& getSrcNode() const {return const_cast<BaseRpcMessage*>(this)->getSrcNode();}
00426     virtual void setSrcNode(const NodeHandle& srcNode_var);
00427 };
00428 
00429 inline void doPacking(cCommBuffer *b, BaseRpcMessage& obj) {obj.parsimPack(b);}
00430 inline void doUnpacking(cCommBuffer *b, BaseRpcMessage& obj) {obj.parsimUnpack(b);}
00431 
00440 class BaseCallMessage : public BaseRpcMessage
00441 {
00442   protected:
00443 
00444     // protected and unimplemented operator==(), to prevent accidental usage
00445     bool operator==(const BaseCallMessage&);
00446 
00447   public:
00448     BaseCallMessage(const char *name=NULL, int kind=0);
00449     BaseCallMessage(const BaseCallMessage& other);
00450     virtual ~BaseCallMessage();
00451     BaseCallMessage& operator=(const BaseCallMessage& other);
00452     virtual BaseCallMessage *dup() const {return new BaseCallMessage(*this);}
00453     virtual void parsimPack(cCommBuffer *b);
00454     virtual void parsimUnpack(cCommBuffer *b);
00455 
00456     // field getter/setter methods
00457 };
00458 
00459 inline void doPacking(cCommBuffer *b, BaseCallMessage& obj) {obj.parsimPack(b);}
00460 inline void doUnpacking(cCommBuffer *b, BaseCallMessage& obj) {obj.parsimUnpack(b);}
00461 
00472 class BaseResponseMessage : public BaseRpcMessage
00473 {
00474   protected:
00475     double *coords_var; // array ptr
00476     unsigned int coords_arraysize;
00477     double error_var;
00478 
00479     // protected and unimplemented operator==(), to prevent accidental usage
00480     bool operator==(const BaseResponseMessage&);
00481 
00482   public:
00483     BaseResponseMessage(const char *name=NULL, int kind=0);
00484     BaseResponseMessage(const BaseResponseMessage& other);
00485     virtual ~BaseResponseMessage();
00486     BaseResponseMessage& operator=(const BaseResponseMessage& other);
00487     virtual BaseResponseMessage *dup() const {return new BaseResponseMessage(*this);}
00488     virtual void parsimPack(cCommBuffer *b);
00489     virtual void parsimUnpack(cCommBuffer *b);
00490 
00491     // field getter/setter methods
00492     virtual void setCoordsArraySize(unsigned int size);
00493     virtual unsigned int getCoordsArraySize() const;
00494     virtual double getCoords(unsigned int k) const;
00495     virtual void setCoords(unsigned int k, double coords_var);
00496     virtual double getError() const;
00497     virtual void setError(double error_var);
00498 };
00499 
00500 inline void doPacking(cCommBuffer *b, BaseResponseMessage& obj) {obj.parsimPack(b);}
00501 inline void doUnpacking(cCommBuffer *b, BaseResponseMessage& obj) {obj.parsimUnpack(b);}
00502 
00511 class RpcTimeoutMessage : public BaseRpcMessage
00512 {
00513   protected:
00514 
00515     // protected and unimplemented operator==(), to prevent accidental usage
00516     bool operator==(const RpcTimeoutMessage&);
00517 
00518   public:
00519     RpcTimeoutMessage(const char *name=NULL, int kind=0);
00520     RpcTimeoutMessage(const RpcTimeoutMessage& other);
00521     virtual ~RpcTimeoutMessage();
00522     RpcTimeoutMessage& operator=(const RpcTimeoutMessage& other);
00523     virtual RpcTimeoutMessage *dup() const {return new RpcTimeoutMessage(*this);}
00524     virtual void parsimPack(cCommBuffer *b);
00525     virtual void parsimUnpack(cCommBuffer *b);
00526 
00527     // field getter/setter methods
00528 };
00529 
00530 inline void doPacking(cCommBuffer *b, RpcTimeoutMessage& obj) {obj.parsimPack(b);}
00531 inline void doUnpacking(cCommBuffer *b, RpcTimeoutMessage& obj) {obj.parsimUnpack(b);}
00532 
00544 class FindNodeCall : public BaseCallMessage
00545 {
00546   protected:
00547     OverlayKey lookupKey_var;
00548     int numRedundantNodes_var;
00549     int numSiblings_var;
00550 
00551     // protected and unimplemented operator==(), to prevent accidental usage
00552     bool operator==(const FindNodeCall&);
00553 
00554   public:
00555     FindNodeCall(const char *name=NULL, int kind=0);
00556     FindNodeCall(const FindNodeCall& other);
00557     virtual ~FindNodeCall();
00558     FindNodeCall& operator=(const FindNodeCall& other);
00559     virtual FindNodeCall *dup() const {return new FindNodeCall(*this);}
00560     virtual void parsimPack(cCommBuffer *b);
00561     virtual void parsimUnpack(cCommBuffer *b);
00562 
00563     // field getter/setter methods
00564     virtual OverlayKey& getLookupKey();
00565     virtual const OverlayKey& getLookupKey() const {return const_cast<FindNodeCall*>(this)->getLookupKey();}
00566     virtual void setLookupKey(const OverlayKey& lookupKey_var);
00567     virtual int getNumRedundantNodes() const;
00568     virtual void setNumRedundantNodes(int numRedundantNodes_var);
00569     virtual int getNumSiblings() const;
00570     virtual void setNumSiblings(int numSiblings_var);
00571 };
00572 
00573 inline void doPacking(cCommBuffer *b, FindNodeCall& obj) {obj.parsimPack(b);}
00574 inline void doUnpacking(cCommBuffer *b, FindNodeCall& obj) {obj.parsimUnpack(b);}
00575 
00587 class FindNodeResponse : public BaseResponseMessage
00588 {
00589   protected:
00590     bool siblings_var;
00591     NodeHandle *closestNodes_var; // array ptr
00592     unsigned int closestNodes_arraysize;
00593 
00594     // protected and unimplemented operator==(), to prevent accidental usage
00595     bool operator==(const FindNodeResponse&);
00596 
00597   public:
00598     FindNodeResponse(const char *name=NULL, int kind=0);
00599     FindNodeResponse(const FindNodeResponse& other);
00600     virtual ~FindNodeResponse();
00601     FindNodeResponse& operator=(const FindNodeResponse& other);
00602     virtual FindNodeResponse *dup() const {return new FindNodeResponse(*this);}
00603     virtual void parsimPack(cCommBuffer *b);
00604     virtual void parsimUnpack(cCommBuffer *b);
00605 
00606     // field getter/setter methods
00607     virtual bool getSiblings() const;
00608     virtual void setSiblings(bool siblings_var);
00609     virtual void setClosestNodesArraySize(unsigned int size);
00610     virtual unsigned int getClosestNodesArraySize() const;
00611     virtual NodeHandle& getClosestNodes(unsigned int k);
00612     virtual const NodeHandle& getClosestNodes(unsigned int k) const {return const_cast<FindNodeResponse*>(this)->getClosestNodes(k);}
00613     virtual void setClosestNodes(unsigned int k, const NodeHandle& closestNodes_var);
00614 };
00615 
00616 inline void doPacking(cCommBuffer *b, FindNodeResponse& obj) {obj.parsimPack(b);}
00617 inline void doUnpacking(cCommBuffer *b, FindNodeResponse& obj) {obj.parsimUnpack(b);}
00618 
00628 class FailedNodeCall : public BaseCallMessage
00629 {
00630   protected:
00631     TransportAddress failedNode_var;
00632 
00633     // protected and unimplemented operator==(), to prevent accidental usage
00634     bool operator==(const FailedNodeCall&);
00635 
00636   public:
00637     FailedNodeCall(const char *name=NULL, int kind=0);
00638     FailedNodeCall(const FailedNodeCall& other);
00639     virtual ~FailedNodeCall();
00640     FailedNodeCall& operator=(const FailedNodeCall& other);
00641     virtual FailedNodeCall *dup() const {return new FailedNodeCall(*this);}
00642     virtual void parsimPack(cCommBuffer *b);
00643     virtual void parsimUnpack(cCommBuffer *b);
00644 
00645     // field getter/setter methods
00646     virtual TransportAddress& getFailedNode();
00647     virtual const TransportAddress& getFailedNode() const {return const_cast<FailedNodeCall*>(this)->getFailedNode();}
00648     virtual void setFailedNode(const TransportAddress& failedNode_var);
00649 };
00650 
00651 inline void doPacking(cCommBuffer *b, FailedNodeCall& obj) {obj.parsimPack(b);}
00652 inline void doUnpacking(cCommBuffer *b, FailedNodeCall& obj) {obj.parsimUnpack(b);}
00653 
00663 class FailedNodeResponse : public BaseResponseMessage
00664 {
00665   protected:
00666     bool tryAgain_var;
00667 
00668     // protected and unimplemented operator==(), to prevent accidental usage
00669     bool operator==(const FailedNodeResponse&);
00670 
00671   public:
00672     FailedNodeResponse(const char *name=NULL, int kind=0);
00673     FailedNodeResponse(const FailedNodeResponse& other);
00674     virtual ~FailedNodeResponse();
00675     FailedNodeResponse& operator=(const FailedNodeResponse& other);
00676     virtual FailedNodeResponse *dup() const {return new FailedNodeResponse(*this);}
00677     virtual void parsimPack(cCommBuffer *b);
00678     virtual void parsimUnpack(cCommBuffer *b);
00679 
00680     // field getter/setter methods
00681     virtual bool getTryAgain() const;
00682     virtual void setTryAgain(bool tryAgain_var);
00683 };
00684 
00685 inline void doPacking(cCommBuffer *b, FailedNodeResponse& obj) {obj.parsimPack(b);}
00686 inline void doUnpacking(cCommBuffer *b, FailedNodeResponse& obj) {obj.parsimUnpack(b);}
00687 
00696 class PingCall : public BaseCallMessage
00697 {
00698   protected:
00699 
00700     // protected and unimplemented operator==(), to prevent accidental usage
00701     bool operator==(const PingCall&);
00702 
00703   public:
00704     PingCall(const char *name=NULL, int kind=0);
00705     PingCall(const PingCall& other);
00706     virtual ~PingCall();
00707     PingCall& operator=(const PingCall& other);
00708     virtual PingCall *dup() const {return new PingCall(*this);}
00709     virtual void parsimPack(cCommBuffer *b);
00710     virtual void parsimUnpack(cCommBuffer *b);
00711 
00712     // field getter/setter methods
00713 };
00714 
00715 inline void doPacking(cCommBuffer *b, PingCall& obj) {obj.parsimPack(b);}
00716 inline void doUnpacking(cCommBuffer *b, PingCall& obj) {obj.parsimUnpack(b);}
00717 
00726 class PingResponse : public BaseResponseMessage
00727 {
00728   protected:
00729 
00730     // protected and unimplemented operator==(), to prevent accidental usage
00731     bool operator==(const PingResponse&);
00732 
00733   public:
00734     PingResponse(const char *name=NULL, int kind=0);
00735     PingResponse(const PingResponse& other);
00736     virtual ~PingResponse();
00737     PingResponse& operator=(const PingResponse& other);
00738     virtual PingResponse *dup() const {return new PingResponse(*this);}
00739     virtual void parsimPack(cCommBuffer *b);
00740     virtual void parsimUnpack(cCommBuffer *b);
00741 
00742     // field getter/setter methods
00743 };
00744 
00745 inline void doPacking(cCommBuffer *b, PingResponse& obj) {obj.parsimPack(b);}
00746 inline void doUnpacking(cCommBuffer *b, PingResponse& obj) {obj.parsimUnpack(b);}
00747 
00758 class CompReadyMessage : public cPacket
00759 {
00760   protected:
00761     bool ready_var;
00762     int comp_var;
00763 
00764     // protected and unimplemented operator==(), to prevent accidental usage
00765     bool operator==(const CompReadyMessage&);
00766 
00767   public:
00768     CompReadyMessage(const char *name=NULL, int kind=0);
00769     CompReadyMessage(const CompReadyMessage& other);
00770     virtual ~CompReadyMessage();
00771     CompReadyMessage& operator=(const CompReadyMessage& other);
00772     virtual CompReadyMessage *dup() const {return new CompReadyMessage(*this);}
00773     virtual void parsimPack(cCommBuffer *b);
00774     virtual void parsimUnpack(cCommBuffer *b);
00775 
00776     // field getter/setter methods
00777     virtual bool getReady() const;
00778     virtual void setReady(bool ready_var);
00779     virtual int getComp() const;
00780     virtual void setComp(int comp_var);
00781 };
00782 
00783 inline void doPacking(cCommBuffer *b, CompReadyMessage& obj) {obj.parsimPack(b);}
00784 inline void doUnpacking(cCommBuffer *b, CompReadyMessage& obj) {obj.parsimUnpack(b);}
00785 
00794 class BootstrapLookupMessage : public BaseOverlayMessage
00795 {
00796   protected:
00797 
00798     // protected and unimplemented operator==(), to prevent accidental usage
00799     bool operator==(const BootstrapLookupMessage&);
00800 
00801   public:
00802     BootstrapLookupMessage(const char *name=NULL, int kind=0);
00803     BootstrapLookupMessage(const BootstrapLookupMessage& other);
00804     virtual ~BootstrapLookupMessage();
00805     BootstrapLookupMessage& operator=(const BootstrapLookupMessage& other);
00806     virtual BootstrapLookupMessage *dup() const {return new BootstrapLookupMessage(*this);}
00807     virtual void parsimPack(cCommBuffer *b);
00808     virtual void parsimUnpack(cCommBuffer *b);
00809 
00810     // field getter/setter methods
00811 };
00812 
00813 inline void doPacking(cCommBuffer *b, BootstrapLookupMessage& obj) {obj.parsimPack(b);}
00814 inline void doUnpacking(cCommBuffer *b, BootstrapLookupMessage& obj) {obj.parsimUnpack(b);}
00815 
00824 class NextHopCall : public BaseCallMessage
00825 {
00826   protected:
00827 
00828     // protected and unimplemented operator==(), to prevent accidental usage
00829     bool operator==(const NextHopCall&);
00830 
00831   public:
00832     NextHopCall(const char *name=NULL, int kind=0);
00833     NextHopCall(const NextHopCall& other);
00834     virtual ~NextHopCall();
00835     NextHopCall& operator=(const NextHopCall& other);
00836     virtual NextHopCall *dup() const {return new NextHopCall(*this);}
00837     virtual void parsimPack(cCommBuffer *b);
00838     virtual void parsimUnpack(cCommBuffer *b);
00839 
00840     // field getter/setter methods
00841 };
00842 
00843 inline void doPacking(cCommBuffer *b, NextHopCall& obj) {obj.parsimPack(b);}
00844 inline void doUnpacking(cCommBuffer *b, NextHopCall& obj) {obj.parsimUnpack(b);}
00845 
00854 class NextHopResponse : public BaseResponseMessage
00855 {
00856   protected:
00857 
00858     // protected and unimplemented operator==(), to prevent accidental usage
00859     bool operator==(const NextHopResponse&);
00860 
00861   public:
00862     NextHopResponse(const char *name=NULL, int kind=0);
00863     NextHopResponse(const NextHopResponse& other);
00864     virtual ~NextHopResponse();
00865     NextHopResponse& operator=(const NextHopResponse& other);
00866     virtual NextHopResponse *dup() const {return new NextHopResponse(*this);}
00867     virtual void parsimPack(cCommBuffer *b);
00868     virtual void parsimUnpack(cCommBuffer *b);
00869 
00870     // field getter/setter methods
00871 };
00872 
00873 inline void doPacking(cCommBuffer *b, NextHopResponse& obj) {obj.parsimPack(b);}
00874 inline void doUnpacking(cCommBuffer *b, NextHopResponse& obj) {obj.parsimUnpack(b);}
00875 
00885 class CommonAPIMessage : public cPacket
00886 {
00887   protected:
00888     int type_var;
00889 
00890     // protected and unimplemented operator==(), to prevent accidental usage
00891     bool operator==(const CommonAPIMessage&);
00892 
00893   public:
00894     CommonAPIMessage(const char *name=NULL, int kind=0);
00895     CommonAPIMessage(const CommonAPIMessage& other);
00896     virtual ~CommonAPIMessage();
00897     CommonAPIMessage& operator=(const CommonAPIMessage& other);
00898     virtual CommonAPIMessage *dup() const {return new CommonAPIMessage(*this);}
00899     virtual void parsimPack(cCommBuffer *b);
00900     virtual void parsimUnpack(cCommBuffer *b);
00901 
00902     // field getter/setter methods
00903     virtual int getType() const;
00904     virtual void setType(int type_var);
00905 };
00906 
00907 inline void doPacking(cCommBuffer *b, CommonAPIMessage& obj) {obj.parsimPack(b);}
00908 inline void doUnpacking(cCommBuffer *b, CommonAPIMessage& obj) {obj.parsimUnpack(b);}
00909 
00923 class KBRroute : public CommonAPIMessage
00924 {
00925   protected:
00926     OverlayKey destKey_var;
00927     int destComp_var;
00928     int srcComp_var;
00929     TransportAddress *sourceRoute_var; // array ptr
00930     unsigned int sourceRoute_arraysize;
00931     int routingType_var;
00932 
00933     // protected and unimplemented operator==(), to prevent accidental usage
00934     bool operator==(const KBRroute&);
00935 
00936   public:
00937     KBRroute(const char *name=NULL, int kind=0);
00938     KBRroute(const KBRroute& other);
00939     virtual ~KBRroute();
00940     KBRroute& operator=(const KBRroute& other);
00941     virtual KBRroute *dup() const {return new KBRroute(*this);}
00942     virtual void parsimPack(cCommBuffer *b);
00943     virtual void parsimUnpack(cCommBuffer *b);
00944 
00945     // field getter/setter methods
00946     virtual OverlayKey& getDestKey();
00947     virtual const OverlayKey& getDestKey() const {return const_cast<KBRroute*>(this)->getDestKey();}
00948     virtual void setDestKey(const OverlayKey& destKey_var);
00949     virtual int getDestComp() const;
00950     virtual void setDestComp(int destComp_var);
00951     virtual int getSrcComp() const;
00952     virtual void setSrcComp(int srcComp_var);
00953     virtual void setSourceRouteArraySize(unsigned int size);
00954     virtual unsigned int getSourceRouteArraySize() const;
00955     virtual TransportAddress& getSourceRoute(unsigned int k);
00956     virtual const TransportAddress& getSourceRoute(unsigned int k) const {return const_cast<KBRroute*>(this)->getSourceRoute(k);}
00957     virtual void setSourceRoute(unsigned int k, const TransportAddress& sourceRoute_var);
00958     virtual int getRoutingType() const;
00959     virtual void setRoutingType(int routingType_var);
00960 };
00961 
00962 inline void doPacking(cCommBuffer *b, KBRroute& obj) {obj.parsimPack(b);}
00963 inline void doUnpacking(cCommBuffer *b, KBRroute& obj) {obj.parsimUnpack(b);}
00964 
00975 class KBRforward : public CommonAPIMessage
00976 {
00977   protected:
00978     OverlayKey destKey_var;
00979     NodeHandle nextHopNode_var;
00980 
00981     // protected and unimplemented operator==(), to prevent accidental usage
00982     bool operator==(const KBRforward&);
00983 
00984   public:
00985     KBRforward(const char *name=NULL, int kind=0);
00986     KBRforward(const KBRforward& other);
00987     virtual ~KBRforward();
00988     KBRforward& operator=(const KBRforward& other);
00989     virtual KBRforward *dup() const {return new KBRforward(*this);}
00990     virtual void parsimPack(cCommBuffer *b);
00991     virtual void parsimUnpack(cCommBuffer *b);
00992 
00993     // field getter/setter methods
00994     virtual OverlayKey& getDestKey();
00995     virtual const OverlayKey& getDestKey() const {return const_cast<KBRforward*>(this)->getDestKey();}
00996     virtual void setDestKey(const OverlayKey& destKey_var);
00997     virtual NodeHandle& getNextHopNode();
00998     virtual const NodeHandle& getNextHopNode() const {return const_cast<KBRforward*>(this)->getNextHopNode();}
00999     virtual void setNextHopNode(const NodeHandle& nextHopNode_var);
01000 };
01001 
01002 inline void doPacking(cCommBuffer *b, KBRforward& obj) {obj.parsimPack(b);}
01003 inline void doUnpacking(cCommBuffer *b, KBRforward& obj) {obj.parsimUnpack(b);}
01004 
01014 class KBRdeliver : public CommonAPIMessage
01015 {
01016   protected:
01017     OverlayKey destKey_var;
01018 
01019     // protected and unimplemented operator==(), to prevent accidental usage
01020     bool operator==(const KBRdeliver&);
01021 
01022   public:
01023     KBRdeliver(const char *name=NULL, int kind=0);
01024     KBRdeliver(const KBRdeliver& other);
01025     virtual ~KBRdeliver();
01026     KBRdeliver& operator=(const KBRdeliver& other);
01027     virtual KBRdeliver *dup() const {return new KBRdeliver(*this);}
01028     virtual void parsimPack(cCommBuffer *b);
01029     virtual void parsimUnpack(cCommBuffer *b);
01030 
01031     // field getter/setter methods
01032     virtual OverlayKey& getDestKey();
01033     virtual const OverlayKey& getDestKey() const {return const_cast<KBRdeliver*>(this)->getDestKey();}
01034     virtual void setDestKey(const OverlayKey& destKey_var);
01035 };
01036 
01037 inline void doPacking(cCommBuffer *b, KBRdeliver& obj) {obj.parsimPack(b);}
01038 inline void doUnpacking(cCommBuffer *b, KBRdeliver& obj) {obj.parsimUnpack(b);}
01039 
01050 class KBRupdate : public CommonAPIMessage
01051 {
01052   protected:
01053     NodeHandle node_var;
01054     bool joined_var;
01055 
01056     // protected and unimplemented operator==(), to prevent accidental usage
01057     bool operator==(const KBRupdate&);
01058 
01059   public:
01060     KBRupdate(const char *name=NULL, int kind=0);
01061     KBRupdate(const KBRupdate& other);
01062     virtual ~KBRupdate();
01063     KBRupdate& operator=(const KBRupdate& other);
01064     virtual KBRupdate *dup() const {return new KBRupdate(*this);}
01065     virtual void parsimPack(cCommBuffer *b);
01066     virtual void parsimUnpack(cCommBuffer *b);
01067 
01068     // field getter/setter methods
01069     virtual NodeHandle& getNode();
01070     virtual const NodeHandle& getNode() const {return const_cast<KBRupdate*>(this)->getNode();}
01071     virtual void setNode(const NodeHandle& node_var);
01072     virtual bool getJoined() const;
01073     virtual void setJoined(bool joined_var);
01074 };
01075 
01076 inline void doPacking(cCommBuffer *b, KBRupdate& obj) {obj.parsimPack(b);}
01077 inline void doUnpacking(cCommBuffer *b, KBRupdate& obj) {obj.parsimUnpack(b);}
01078 
01091 class DHTputCAPICall : public BaseCallMessage
01092 {
01093   protected:
01094     OverlayKey key_var;
01095     BinaryValue value_var;
01096     int ttl_var;
01097     bool isModifiable_var;
01098 
01099     // protected and unimplemented operator==(), to prevent accidental usage
01100     bool operator==(const DHTputCAPICall&);
01101 
01102   public:
01103     DHTputCAPICall(const char *name=NULL, int kind=0);
01104     DHTputCAPICall(const DHTputCAPICall& other);
01105     virtual ~DHTputCAPICall();
01106     DHTputCAPICall& operator=(const DHTputCAPICall& other);
01107     virtual DHTputCAPICall *dup() const {return new DHTputCAPICall(*this);}
01108     virtual void parsimPack(cCommBuffer *b);
01109     virtual void parsimUnpack(cCommBuffer *b);
01110 
01111     // field getter/setter methods
01112     virtual OverlayKey& getKey();
01113     virtual const OverlayKey& getKey() const {return const_cast<DHTputCAPICall*>(this)->getKey();}
01114     virtual void setKey(const OverlayKey& key_var);
01115     virtual BinaryValue& getValue();
01116     virtual const BinaryValue& getValue() const {return const_cast<DHTputCAPICall*>(this)->getValue();}
01117     virtual void setValue(const BinaryValue& value_var);
01118     virtual int getTtl() const;
01119     virtual void setTtl(int ttl_var);
01120     virtual bool getIsModifiable() const;
01121     virtual void setIsModifiable(bool isModifiable_var);
01122 };
01123 
01124 inline void doPacking(cCommBuffer *b, DHTputCAPICall& obj) {obj.parsimPack(b);}
01125 inline void doUnpacking(cCommBuffer *b, DHTputCAPICall& obj) {obj.parsimUnpack(b);}
01126 
01136 class DHTgetCAPICall : public BaseCallMessage
01137 {
01138   protected:
01139     OverlayKey key_var;
01140 
01141     // protected and unimplemented operator==(), to prevent accidental usage
01142     bool operator==(const DHTgetCAPICall&);
01143 
01144   public:
01145     DHTgetCAPICall(const char *name=NULL, int kind=0);
01146     DHTgetCAPICall(const DHTgetCAPICall& other);
01147     virtual ~DHTgetCAPICall();
01148     DHTgetCAPICall& operator=(const DHTgetCAPICall& other);
01149     virtual DHTgetCAPICall *dup() const {return new DHTgetCAPICall(*this);}
01150     virtual void parsimPack(cCommBuffer *b);
01151     virtual void parsimUnpack(cCommBuffer *b);
01152 
01153     // field getter/setter methods
01154     virtual OverlayKey& getKey();
01155     virtual const OverlayKey& getKey() const {return const_cast<DHTgetCAPICall*>(this)->getKey();}
01156     virtual void setKey(const OverlayKey& key_var);
01157 };
01158 
01159 inline void doPacking(cCommBuffer *b, DHTgetCAPICall& obj) {obj.parsimPack(b);}
01160 inline void doUnpacking(cCommBuffer *b, DHTgetCAPICall& obj) {obj.parsimUnpack(b);}
01161 
01173 class DHTputCAPIResponse : public BaseResponseMessage
01174 {
01175   protected:
01176     OverlayKey key_var;
01177     BinaryValue value_var;
01178     bool isSuccess_var;
01179 
01180     // protected and unimplemented operator==(), to prevent accidental usage
01181     bool operator==(const DHTputCAPIResponse&);
01182 
01183   public:
01184     DHTputCAPIResponse(const char *name=NULL, int kind=0);
01185     DHTputCAPIResponse(const DHTputCAPIResponse& other);
01186     virtual ~DHTputCAPIResponse();
01187     DHTputCAPIResponse& operator=(const DHTputCAPIResponse& other);
01188     virtual DHTputCAPIResponse *dup() const {return new DHTputCAPIResponse(*this);}
01189     virtual void parsimPack(cCommBuffer *b);
01190     virtual void parsimUnpack(cCommBuffer *b);
01191 
01192     // field getter/setter methods
01193     virtual OverlayKey& getKey();
01194     virtual const OverlayKey& getKey() const {return const_cast<DHTputCAPIResponse*>(this)->getKey();}
01195     virtual void setKey(const OverlayKey& key_var);
01196     virtual BinaryValue& getValue();
01197     virtual const BinaryValue& getValue() const {return const_cast<DHTputCAPIResponse*>(this)->getValue();}
01198     virtual void setValue(const BinaryValue& value_var);
01199     virtual bool getIsSuccess() const;
01200     virtual void setIsSuccess(bool isSuccess_var);
01201 };
01202 
01203 inline void doPacking(cCommBuffer *b, DHTputCAPIResponse& obj) {obj.parsimPack(b);}
01204 inline void doUnpacking(cCommBuffer *b, DHTputCAPIResponse& obj) {obj.parsimUnpack(b);}
01205 
01217 class DHTgetCAPIResponse : public BaseResponseMessage
01218 {
01219   protected:
01220     OverlayKey key_var;
01221     BinaryValue value_var;
01222     bool isSuccess_var;
01223 
01224     // protected and unimplemented operator==(), to prevent accidental usage
01225     bool operator==(const DHTgetCAPIResponse&);
01226 
01227   public:
01228     DHTgetCAPIResponse(const char *name=NULL, int kind=0);
01229     DHTgetCAPIResponse(const DHTgetCAPIResponse& other);
01230     virtual ~DHTgetCAPIResponse();
01231     DHTgetCAPIResponse& operator=(const DHTgetCAPIResponse& other);
01232     virtual DHTgetCAPIResponse *dup() const {return new DHTgetCAPIResponse(*this);}
01233     virtual void parsimPack(cCommBuffer *b);
01234     virtual void parsimUnpack(cCommBuffer *b);
01235 
01236     // field getter/setter methods
01237     virtual OverlayKey& getKey();
01238     virtual const OverlayKey& getKey() const {return const_cast<DHTgetCAPIResponse*>(this)->getKey();}
01239     virtual void setKey(const OverlayKey& key_var);
01240     virtual BinaryValue& getValue();
01241     virtual const BinaryValue& getValue() const {return const_cast<DHTgetCAPIResponse*>(this)->getValue();}
01242     virtual void setValue(const BinaryValue& value_var);
01243     virtual bool getIsSuccess() const;
01244     virtual void setIsSuccess(bool isSuccess_var);
01245 };
01246 
01247 inline void doPacking(cCommBuffer *b, DHTgetCAPIResponse& obj) {obj.parsimPack(b);}
01248 inline void doUnpacking(cCommBuffer *b, DHTgetCAPIResponse& obj) {obj.parsimUnpack(b);}
01249 
01258 class DHTdumpCall : public BaseCallMessage
01259 {
01260   protected:
01261 
01262     // protected and unimplemented operator==(), to prevent accidental usage
01263     bool operator==(const DHTdumpCall&);
01264 
01265   public:
01266     DHTdumpCall(const char *name=NULL, int kind=0);
01267     DHTdumpCall(const DHTdumpCall& other);
01268     virtual ~DHTdumpCall();
01269     DHTdumpCall& operator=(const DHTdumpCall& other);
01270     virtual DHTdumpCall *dup() const {return new DHTdumpCall(*this);}
01271     virtual void parsimPack(cCommBuffer *b);
01272     virtual void parsimUnpack(cCommBuffer *b);
01273 
01274     // field getter/setter methods
01275 };
01276 
01277 inline void doPacking(cCommBuffer *b, DHTdumpCall& obj) {obj.parsimPack(b);}
01278 inline void doUnpacking(cCommBuffer *b, DHTdumpCall& obj) {obj.parsimUnpack(b);}
01279 
01289 class DHTdumpResponse : public BaseResponseMessage
01290 {
01291   protected:
01292     DhtDumpEntry *record_var; // array ptr
01293     unsigned int record_arraysize;
01294 
01295     // protected and unimplemented operator==(), to prevent accidental usage
01296     bool operator==(const DHTdumpResponse&);
01297 
01298   public:
01299     DHTdumpResponse(const char *name=NULL, int kind=0);
01300     DHTdumpResponse(const DHTdumpResponse& other);
01301     virtual ~DHTdumpResponse();
01302     DHTdumpResponse& operator=(const DHTdumpResponse& other);
01303     virtual DHTdumpResponse *dup() const {return new DHTdumpResponse(*this);}
01304     virtual void parsimPack(cCommBuffer *b);
01305     virtual void parsimUnpack(cCommBuffer *b);
01306 
01307     // field getter/setter methods
01308     virtual void setRecordArraySize(unsigned int size);
01309     virtual unsigned int getRecordArraySize() const;
01310     virtual DhtDumpEntry& getRecord(unsigned int k);
01311     virtual const DhtDumpEntry& getRecord(unsigned int k) const {return const_cast<DHTdumpResponse*>(this)->getRecord(k);}
01312     virtual void setRecord(unsigned int k, const DhtDumpEntry& record_var);
01313 };
01314 
01315 inline void doPacking(cCommBuffer *b, DHTdumpResponse& obj) {obj.parsimPack(b);}
01316 inline void doUnpacking(cCommBuffer *b, DHTdumpResponse& obj) {obj.parsimUnpack(b);}
01317 
01329 class LookupCall : public BaseCallMessage
01330 {
01331   protected:
01332     OverlayKey key_var;
01333     int numSiblings_var;
01334     int routingType_var;
01335 
01336     // protected and unimplemented operator==(), to prevent accidental usage
01337     bool operator==(const LookupCall&);
01338 
01339   public:
01340     LookupCall(const char *name=NULL, int kind=0);
01341     LookupCall(const LookupCall& other);
01342     virtual ~LookupCall();
01343     LookupCall& operator=(const LookupCall& other);
01344     virtual LookupCall *dup() const {return new LookupCall(*this);}
01345     virtual void parsimPack(cCommBuffer *b);
01346     virtual void parsimUnpack(cCommBuffer *b);
01347 
01348     // field getter/setter methods
01349     virtual OverlayKey& getKey();
01350     virtual const OverlayKey& getKey() const {return const_cast<LookupCall*>(this)->getKey();}
01351     virtual void setKey(const OverlayKey& key_var);
01352     virtual int getNumSiblings() const;
01353     virtual void setNumSiblings(int numSiblings_var);
01354     virtual int getRoutingType() const;
01355     virtual void setRoutingType(int routingType_var);
01356 };
01357 
01358 inline void doPacking(cCommBuffer *b, LookupCall& obj) {obj.parsimPack(b);}
01359 inline void doUnpacking(cCommBuffer *b, LookupCall& obj) {obj.parsimUnpack(b);}
01360 
01372 class LookupResponse : public BaseResponseMessage
01373 {
01374   protected:
01375     OverlayKey key_var;
01376     bool isValid_var;
01377     NodeHandle *siblings_var; // array ptr
01378     unsigned int siblings_arraysize;
01379 
01380     // protected and unimplemented operator==(), to prevent accidental usage
01381     bool operator==(const LookupResponse&);
01382 
01383   public:
01384     LookupResponse(const char *name=NULL, int kind=0);
01385     LookupResponse(const LookupResponse& other);
01386     virtual ~LookupResponse();
01387     LookupResponse& operator=(const LookupResponse& other);
01388     virtual LookupResponse *dup() const {return new LookupResponse(*this);}
01389     virtual void parsimPack(cCommBuffer *b);
01390     virtual void parsimUnpack(cCommBuffer *b);
01391 
01392     // field getter/setter methods
01393     virtual OverlayKey& getKey();
01394     virtual const OverlayKey& getKey() const {return const_cast<LookupResponse*>(this)->getKey();}
01395     virtual void setKey(const OverlayKey& key_var);
01396     virtual bool getIsValid() const;
01397     virtual void setIsValid(bool isValid_var);
01398     virtual void setSiblingsArraySize(unsigned int size);
01399     virtual unsigned int getSiblingsArraySize() const;
01400     virtual NodeHandle& getSiblings(unsigned int k);
01401     virtual const NodeHandle& getSiblings(unsigned int k) const {return const_cast<LookupResponse*>(this)->getSiblings(k);}
01402     virtual void setSiblings(unsigned int k, const NodeHandle& siblings_var);
01403 };
01404 
01405 inline void doPacking(cCommBuffer *b, LookupResponse& obj) {obj.parsimPack(b);}
01406 inline void doUnpacking(cCommBuffer *b, LookupResponse& obj) {obj.parsimUnpack(b);}
01407 
01419 class P2pnsRegisterCall : public BaseCallMessage
01420 {
01421   protected:
01422     BinaryValue p2pName_var;
01423     BinaryValue address_var;
01424     int ttl_var;
01425 
01426     // protected and unimplemented operator==(), to prevent accidental usage
01427     bool operator==(const P2pnsRegisterCall&);
01428 
01429   public:
01430     P2pnsRegisterCall(const char *name=NULL, int kind=0);
01431     P2pnsRegisterCall(const P2pnsRegisterCall& other);
01432     virtual ~P2pnsRegisterCall();
01433     P2pnsRegisterCall& operator=(const P2pnsRegisterCall& other);
01434     virtual P2pnsRegisterCall *dup() const {return new P2pnsRegisterCall(*this);}
01435     virtual void parsimPack(cCommBuffer *b);
01436     virtual void parsimUnpack(cCommBuffer *b);
01437 
01438     // field getter/setter methods
01439     virtual BinaryValue& getP2pName();
01440     virtual const BinaryValue& getP2pName() const {return const_cast<P2pnsRegisterCall*>(this)->getP2pName();}
01441     virtual void setP2pName(const BinaryValue& p2pName_var);
01442     virtual BinaryValue& getAddress();
01443     virtual const BinaryValue& getAddress() const {return const_cast<P2pnsRegisterCall*>(this)->getAddress();}
01444     virtual void setAddress(const BinaryValue& address_var);
01445     virtual int getTtl() const;
01446     virtual void setTtl(int ttl_var);
01447 };
01448 
01449 inline void doPacking(cCommBuffer *b, P2pnsRegisterCall& obj) {obj.parsimPack(b);}
01450 inline void doUnpacking(cCommBuffer *b, P2pnsRegisterCall& obj) {obj.parsimUnpack(b);}
01451 
01463 class P2pnsRegisterResponse : public BaseResponseMessage
01464 {
01465   protected:
01466     BinaryValue p2pName_var;
01467     BinaryValue address_var;
01468     bool isSuccess_var;
01469 
01470     // protected and unimplemented operator==(), to prevent accidental usage
01471     bool operator==(const P2pnsRegisterResponse&);
01472 
01473   public:
01474     P2pnsRegisterResponse(const char *name=NULL, int kind=0);
01475     P2pnsRegisterResponse(const P2pnsRegisterResponse& other);
01476     virtual ~P2pnsRegisterResponse();
01477     P2pnsRegisterResponse& operator=(const P2pnsRegisterResponse& other);
01478     virtual P2pnsRegisterResponse *dup() const {return new P2pnsRegisterResponse(*this);}
01479     virtual void parsimPack(cCommBuffer *b);
01480     virtual void parsimUnpack(cCommBuffer *b);
01481 
01482     // field getter/setter methods
01483     virtual BinaryValue& getP2pName();
01484     virtual const BinaryValue& getP2pName() const {return const_cast<P2pnsRegisterResponse*>(this)->getP2pName();}
01485     virtual void setP2pName(const BinaryValue& p2pName_var);
01486     virtual BinaryValue& getAddress();
01487     virtual const BinaryValue& getAddress() const {return const_cast<P2pnsRegisterResponse*>(this)->getAddress();}
01488     virtual void setAddress(const BinaryValue& address_var);
01489     virtual bool getIsSuccess() const;
01490     virtual void setIsSuccess(bool isSuccess_var);
01491 };
01492 
01493 inline void doPacking(cCommBuffer *b, P2pnsRegisterResponse& obj) {obj.parsimPack(b);}
01494 inline void doUnpacking(cCommBuffer *b, P2pnsRegisterResponse& obj) {obj.parsimUnpack(b);}
01495 
01505 class P2pnsResolveCall : public BaseCallMessage
01506 {
01507   protected:
01508     BinaryValue p2pName_var;
01509 
01510     // protected and unimplemented operator==(), to prevent accidental usage
01511     bool operator==(const P2pnsResolveCall&);
01512 
01513   public:
01514     P2pnsResolveCall(const char *name=NULL, int kind=0);
01515     P2pnsResolveCall(const P2pnsResolveCall& other);
01516     virtual ~P2pnsResolveCall();
01517     P2pnsResolveCall& operator=(const P2pnsResolveCall& other);
01518     virtual P2pnsResolveCall *dup() const {return new P2pnsResolveCall(*this);}
01519     virtual void parsimPack(cCommBuffer *b);
01520     virtual void parsimUnpack(cCommBuffer *b);
01521 
01522     // field getter/setter methods
01523     virtual BinaryValue& getP2pName();
01524     virtual const BinaryValue& getP2pName() const {return const_cast<P2pnsResolveCall*>(this)->getP2pName();}
01525     virtual void setP2pName(const BinaryValue& p2pName_var);
01526 };
01527 
01528 inline void doPacking(cCommBuffer *b, P2pnsResolveCall& obj) {obj.parsimPack(b);}
01529 inline void doUnpacking(cCommBuffer *b, P2pnsResolveCall& obj) {obj.parsimUnpack(b);}
01530 
01542 class P2pnsResolveResponse : public BaseResponseMessage
01543 {
01544   protected:
01545     BinaryValue p2pName_var;
01546     BinaryValue address_var;
01547     bool isSuccess_var;
01548 
01549     // protected and unimplemented operator==(), to prevent accidental usage
01550     bool operator==(const P2pnsResolveResponse&);
01551 
01552   public:
01553     P2pnsResolveResponse(const char *name=NULL, int kind=0);
01554     P2pnsResolveResponse(const P2pnsResolveResponse& other);
01555     virtual ~P2pnsResolveResponse();
01556     P2pnsResolveResponse& operator=(const P2pnsResolveResponse& other);
01557     virtual P2pnsResolveResponse *dup() const {return new P2pnsResolveResponse(*this);}
01558     virtual void parsimPack(cCommBuffer *b);
01559     virtual void parsimUnpack(cCommBuffer *b);
01560 
01561     // field getter/setter methods
01562     virtual BinaryValue& getP2pName();
01563     virtual const BinaryValue& getP2pName() const {return const_cast<P2pnsResolveResponse*>(this)->getP2pName();}
01564     virtual void setP2pName(const BinaryValue& p2pName_var);
01565     virtual BinaryValue& getAddress();
01566     virtual const BinaryValue& getAddress() const {return const_cast<P2pnsResolveResponse*>(this)->getAddress();}
01567     virtual void setAddress(const BinaryValue& address_var);
01568     virtual bool getIsSuccess() const;
01569     virtual void setIsSuccess(bool isSuccess_var);
01570 };
01571 
01572 inline void doPacking(cCommBuffer *b, P2pnsResolveResponse& obj) {obj.parsimPack(b);}
01573 inline void doUnpacking(cCommBuffer *b, P2pnsResolveResponse& obj) {obj.parsimUnpack(b);}
01574 
01591 class OverlayCtrlInfo : public cObject
01592 {
01593   protected:
01594     TransportAddress lastHop_var;
01595     NodeHandle srcNode_var;
01596     int hopCount_var;
01597     TransportAddress *visitedHops_var; // array ptr
01598     unsigned int visitedHops_arraysize;
01599     int srcComp_var;
01600     int destComp_var;
01601     int transportType_var;
01602     int routingType_var;
01603 
01604     // protected and unimplemented operator==(), to prevent accidental usage
01605     bool operator==(const OverlayCtrlInfo&);
01606 
01607   public:
01608     OverlayCtrlInfo();
01609     OverlayCtrlInfo(const OverlayCtrlInfo& other);
01610     virtual ~OverlayCtrlInfo();
01611     OverlayCtrlInfo& operator=(const OverlayCtrlInfo& other);
01612     virtual OverlayCtrlInfo *dup() const {return new OverlayCtrlInfo(*this);}
01613     virtual void parsimPack(cCommBuffer *b);
01614     virtual void parsimUnpack(cCommBuffer *b);
01615 
01616     // field getter/setter methods
01617     virtual TransportAddress& getLastHop();
01618     virtual const TransportAddress& getLastHop() const {return const_cast<OverlayCtrlInfo*>(this)->getLastHop();}
01619     virtual void setLastHop(const TransportAddress& lastHop_var);
01620     virtual NodeHandle& getSrcNode();
01621     virtual const NodeHandle& getSrcNode() const {return const_cast<OverlayCtrlInfo*>(this)->getSrcNode();}
01622     virtual void setSrcNode(const NodeHandle& srcNode_var);
01623     virtual int getHopCount() const;
01624     virtual void setHopCount(int hopCount_var);
01625     virtual void setVisitedHopsArraySize(unsigned int size);
01626     virtual unsigned int getVisitedHopsArraySize() const;
01627     virtual TransportAddress& getVisitedHops(unsigned int k);
01628     virtual const TransportAddress& getVisitedHops(unsigned int k) const {return const_cast<OverlayCtrlInfo*>(this)->getVisitedHops(k);}
01629     virtual void setVisitedHops(unsigned int k, const TransportAddress& visitedHops_var);
01630     virtual int getSrcComp() const;
01631     virtual void setSrcComp(int srcComp_var);
01632     virtual int getDestComp() const;
01633     virtual void setDestComp(int destComp_var);
01634     virtual int getTransportType() const;
01635     virtual void setTransportType(int transportType_var);
01636     virtual int getRoutingType() const;
01637     virtual void setRoutingType(int routingType_var);
01638 };
01639 
01640 inline void doPacking(cCommBuffer *b, OverlayCtrlInfo& obj) {obj.parsimPack(b);}
01641 inline void doUnpacking(cCommBuffer *b, OverlayCtrlInfo& obj) {obj.parsimUnpack(b);}
01642 
01652 class ALMMessage : public cPacket
01653 {
01654   protected:
01655     OverlayKey groupId_var;
01656 
01657     // protected and unimplemented operator==(), to prevent accidental usage
01658     bool operator==(const ALMMessage&);
01659 
01660   public:
01661     ALMMessage(const char *name=NULL, int kind=0);
01662     ALMMessage(const ALMMessage& other);
01663     virtual ~ALMMessage();
01664     ALMMessage& operator=(const ALMMessage& other);
01665     virtual ALMMessage *dup() const {return new ALMMessage(*this);}
01666     virtual void parsimPack(cCommBuffer *b);
01667     virtual void parsimUnpack(cCommBuffer *b);
01668 
01669     // field getter/setter methods
01670     virtual OverlayKey& getGroupId();
01671     virtual const OverlayKey& getGroupId() const {return const_cast<ALMMessage*>(this)->getGroupId();}
01672     virtual void setGroupId(const OverlayKey& groupId_var);
01673 };
01674 
01675 inline void doPacking(cCommBuffer *b, ALMMessage& obj) {obj.parsimPack(b);}
01676 inline void doUnpacking(cCommBuffer *b, ALMMessage& obj) {obj.parsimUnpack(b);}
01677 
01686 class ALMCreateMessage : public ALMMessage
01687 {
01688   protected:
01689 
01690     // protected and unimplemented operator==(), to prevent accidental usage
01691     bool operator==(const ALMCreateMessage&);
01692 
01693   public:
01694     ALMCreateMessage(const char *name=NULL, int kind=0);
01695     ALMCreateMessage(const ALMCreateMessage& other);
01696     virtual ~ALMCreateMessage();
01697     ALMCreateMessage& operator=(const ALMCreateMessage& other);
01698     virtual ALMCreateMessage *dup() const {return new ALMCreateMessage(*this);}
01699     virtual void parsimPack(cCommBuffer *b);
01700     virtual void parsimUnpack(cCommBuffer *b);
01701 
01702     // field getter/setter methods
01703 };
01704 
01705 inline void doPacking(cCommBuffer *b, ALMCreateMessage& obj) {obj.parsimPack(b);}
01706 inline void doUnpacking(cCommBuffer *b, ALMCreateMessage& obj) {obj.parsimUnpack(b);}
01707 
01716 class ALMDeleteMessage : public ALMMessage
01717 {
01718   protected:
01719 
01720     // protected and unimplemented operator==(), to prevent accidental usage
01721     bool operator==(const ALMDeleteMessage&);
01722 
01723   public:
01724     ALMDeleteMessage(const char *name=NULL, int kind=0);
01725     ALMDeleteMessage(const ALMDeleteMessage& other);
01726     virtual ~ALMDeleteMessage();
01727     ALMDeleteMessage& operator=(const ALMDeleteMessage& other);
01728     virtual ALMDeleteMessage *dup() const {return new ALMDeleteMessage(*this);}
01729     virtual void parsimPack(cCommBuffer *b);
01730     virtual void parsimUnpack(cCommBuffer *b);
01731 
01732     // field getter/setter methods
01733 };
01734 
01735 inline void doPacking(cCommBuffer *b, ALMDeleteMessage& obj) {obj.parsimPack(b);}
01736 inline void doUnpacking(cCommBuffer *b, ALMDeleteMessage& obj) {obj.parsimUnpack(b);}
01737 
01746 class ALMSubscribeMessage : public ALMMessage
01747 {
01748   protected:
01749 
01750     // protected and unimplemented operator==(), to prevent accidental usage
01751     bool operator==(const ALMSubscribeMessage&);
01752 
01753   public:
01754     ALMSubscribeMessage(const char *name=NULL, int kind=0);
01755     ALMSubscribeMessage(const ALMSubscribeMessage& other);
01756     virtual ~ALMSubscribeMessage();
01757     ALMSubscribeMessage& operator=(const ALMSubscribeMessage& other);
01758     virtual ALMSubscribeMessage *dup() const {return new ALMSubscribeMessage(*this);}
01759     virtual void parsimPack(cCommBuffer *b);
01760     virtual void parsimUnpack(cCommBuffer *b);
01761 
01762     // field getter/setter methods
01763 };
01764 
01765 inline void doPacking(cCommBuffer *b, ALMSubscribeMessage& obj) {obj.parsimPack(b);}
01766 inline void doUnpacking(cCommBuffer *b, ALMSubscribeMessage& obj) {obj.parsimUnpack(b);}
01767 
01776 class ALMLeaveMessage : public ALMMessage
01777 {
01778   protected:
01779 
01780     // protected and unimplemented operator==(), to prevent accidental usage
01781     bool operator==(const ALMLeaveMessage&);
01782 
01783   public:
01784     ALMLeaveMessage(const char *name=NULL, int kind=0);
01785     ALMLeaveMessage(const ALMLeaveMessage& other);
01786     virtual ~ALMLeaveMessage();
01787     ALMLeaveMessage& operator=(const ALMLeaveMessage& other);
01788     virtual ALMLeaveMessage *dup() const {return new ALMLeaveMessage(*this);}
01789     virtual void parsimPack(cCommBuffer *b);
01790     virtual void parsimUnpack(cCommBuffer *b);
01791 
01792     // field getter/setter methods
01793 };
01794 
01795 inline void doPacking(cCommBuffer *b, ALMLeaveMessage& obj) {obj.parsimPack(b);}
01796 inline void doUnpacking(cCommBuffer *b, ALMLeaveMessage& obj) {obj.parsimUnpack(b);}
01797 
01806 class ALMMulticastMessage : public ALMMessage
01807 {
01808   protected:
01809 
01810     // protected and unimplemented operator==(), to prevent accidental usage
01811     bool operator==(const ALMMulticastMessage&);
01812 
01813   public:
01814     ALMMulticastMessage(const char *name=NULL, int kind=0);
01815     ALMMulticastMessage(const ALMMulticastMessage& other);
01816     virtual ~ALMMulticastMessage();
01817     ALMMulticastMessage& operator=(const ALMMulticastMessage& other);
01818     virtual ALMMulticastMessage *dup() const {return new ALMMulticastMessage(*this);}
01819     virtual void parsimPack(cCommBuffer *b);
01820     virtual void parsimUnpack(cCommBuffer *b);
01821 
01822     // field getter/setter methods
01823 };
01824 
01825 inline void doPacking(cCommBuffer *b, ALMMulticastMessage& obj) {obj.parsimPack(b);}
01826 inline void doUnpacking(cCommBuffer *b, ALMMulticastMessage& obj) {obj.parsimUnpack(b);}
01827 
01836 class ALMAnycastMessage : public ALMMessage
01837 {
01838   protected:
01839 
01840     // protected and unimplemented operator==(), to prevent accidental usage
01841     bool operator==(const ALMAnycastMessage&);
01842 
01843   public:
01844     ALMAnycastMessage(const char *name=NULL, int kind=0);
01845     ALMAnycastMessage(const ALMAnycastMessage& other);
01846     virtual ~ALMAnycastMessage();
01847     ALMAnycastMessage& operator=(const ALMAnycastMessage& other);
01848     virtual ALMAnycastMessage *dup() const {return new ALMAnycastMessage(*this);}
01849     virtual void parsimPack(cCommBuffer *b);
01850     virtual void parsimUnpack(cCommBuffer *b);
01851 
01852     // field getter/setter methods
01853 };
01854 
01855 inline void doPacking(cCommBuffer *b, ALMAnycastMessage& obj) {obj.parsimPack(b);}
01856 inline void doUnpacking(cCommBuffer *b, ALMAnycastMessage& obj) {obj.parsimUnpack(b);}
01857 
01867 class GameAPIMessage : public BaseOverlayMessage
01868 {
01869   protected:
01870     int command_var;
01871 
01872     // protected and unimplemented operator==(), to prevent accidental usage
01873     bool operator==(const GameAPIMessage&);
01874 
01875   public:
01876     GameAPIMessage(const char *name=NULL, int kind=0);
01877     GameAPIMessage(const GameAPIMessage& other);
01878     virtual ~GameAPIMessage();
01879     GameAPIMessage& operator=(const GameAPIMessage& other);
01880     virtual GameAPIMessage *dup() const {return new GameAPIMessage(*this);}
01881     virtual void parsimPack(cCommBuffer *b);
01882     virtual void parsimUnpack(cCommBuffer *b);
01883 
01884     // field getter/setter methods
01885     virtual int getCommand() const;
01886     virtual void setCommand(int command_var);
01887 };
01888 
01889 inline void doPacking(cCommBuffer *b, GameAPIMessage& obj) {obj.parsimPack(b);}
01890 inline void doUnpacking(cCommBuffer *b, GameAPIMessage& obj) {obj.parsimUnpack(b);}
01891 
01903 class GameAPIListMessage : public GameAPIMessage
01904 {
01905   protected:
01906     NodeHandle *removeNeighbor_var; // array ptr
01907     unsigned int removeNeighbor_arraysize;
01908     NodeHandle *addNeighbor_var; // array ptr
01909     unsigned int addNeighbor_arraysize;
01910     Vector2D *neighborPosition_var; // array ptr
01911     unsigned int neighborPosition_arraysize;
01912 
01913     // protected and unimplemented operator==(), to prevent accidental usage
01914     bool operator==(const GameAPIListMessage&);
01915 
01916   public:
01917     GameAPIListMessage(const char *name=NULL, int kind=0);
01918     GameAPIListMessage(const GameAPIListMessage& other);
01919     virtual ~GameAPIListMessage();
01920     GameAPIListMessage& operator=(const GameAPIListMessage& other);
01921     virtual GameAPIListMessage *dup() const {return new GameAPIListMessage(*this);}
01922     virtual void parsimPack(cCommBuffer *b);
01923     virtual void parsimUnpack(cCommBuffer *b);
01924 
01925     // field getter/setter methods
01926     virtual void setRemoveNeighborArraySize(unsigned int size);
01927     virtual unsigned int getRemoveNeighborArraySize() const;
01928     virtual NodeHandle& getRemoveNeighbor(unsigned int k);
01929     virtual const NodeHandle& getRemoveNeighbor(unsigned int k) const {return const_cast<GameAPIListMessage*>(this)->getRemoveNeighbor(k);}
01930     virtual void setRemoveNeighbor(unsigned int k, const NodeHandle& removeNeighbor_var);
01931     virtual void setAddNeighborArraySize(unsigned int size);
01932     virtual unsigned int getAddNeighborArraySize() const;
01933     virtual NodeHandle& getAddNeighbor(unsigned int k);
01934     virtual const NodeHandle& getAddNeighbor(unsigned int k) const {return const_cast<GameAPIListMessage*>(this)->getAddNeighbor(k);}
01935     virtual void setAddNeighbor(unsigned int k, const NodeHandle& addNeighbor_var);
01936     virtual void setNeighborPositionArraySize(unsigned int size);
01937     virtual unsigned int getNeighborPositionArraySize() const;
01938     virtual Vector2D& getNeighborPosition(unsigned int k);
01939     virtual const Vector2D& getNeighborPosition(unsigned int k) const {return const_cast<GameAPIListMessage*>(this)->getNeighborPosition(k);}
01940     virtual void setNeighborPosition(unsigned int k, const Vector2D& neighborPosition_var);
01941 };
01942 
01943 inline void doPacking(cCommBuffer *b, GameAPIListMessage& obj) {obj.parsimPack(b);}
01944 inline void doUnpacking(cCommBuffer *b, GameAPIListMessage& obj) {obj.parsimUnpack(b);}
01945 
01955 class GameAPIPositionMessage : public GameAPIMessage
01956 {
01957   protected:
01958     Vector2D position_var;
01959 
01960     // protected and unimplemented operator==(), to prevent accidental usage
01961     bool operator==(const GameAPIPositionMessage&);
01962 
01963   public:
01964     GameAPIPositionMessage(const char *name=NULL, int kind=0);
01965     GameAPIPositionMessage(const GameAPIPositionMessage& other);
01966     virtual ~GameAPIPositionMessage();
01967     GameAPIPositionMessage& operator=(const GameAPIPositionMessage& other);
01968     virtual GameAPIPositionMessage *dup() const {return new GameAPIPositionMessage(*this);}
01969     virtual void parsimPack(cCommBuffer *b);
01970     virtual void parsimUnpack(cCommBuffer *b);
01971 
01972     // field getter/setter methods
01973     virtual Vector2D& getPosition();
01974     virtual const Vector2D& getPosition() const {return const_cast<GameAPIPositionMessage*>(this)->getPosition();}
01975     virtual void setPosition(const Vector2D& position_var);
01976 };
01977 
01978 inline void doPacking(cCommBuffer *b, GameAPIPositionMessage& obj) {obj.parsimPack(b);}
01979 inline void doUnpacking(cCommBuffer *b, GameAPIPositionMessage& obj) {obj.parsimUnpack(b);}
01980 
01990 class GameAPIResizeAOIMessage : public GameAPIMessage
01991 {
01992   protected:
01993     double AOIsize_var;
01994 
01995     // protected and unimplemented operator==(), to prevent accidental usage
01996     bool operator==(const GameAPIResizeAOIMessage&);
01997 
01998   public:
01999     GameAPIResizeAOIMessage(const char *name=NULL, int kind=0);
02000     GameAPIResizeAOIMessage(const GameAPIResizeAOIMessage& other);
02001     virtual ~GameAPIResizeAOIMessage();
02002     GameAPIResizeAOIMessage& operator=(const GameAPIResizeAOIMessage& other);
02003     virtual GameAPIResizeAOIMessage *dup() const {return new GameAPIResizeAOIMessage(*this);}
02004     virtual void parsimPack(cCommBuffer *b);
02005     virtual void parsimUnpack(cCommBuffer *b);
02006 
02007     // field getter/setter methods
02008     virtual double getAOIsize() const;
02009     virtual void setAOIsize(double AOIsize_var);
02010 };
02011 
02012 inline void doPacking(cCommBuffer *b, GameAPIResizeAOIMessage& obj) {obj.parsimPack(b);}
02013 inline void doUnpacking(cCommBuffer *b, GameAPIResizeAOIMessage& obj) {obj.parsimUnpack(b);}
02014 
02025 class GameAPIChatMessage : public GameAPIMessage
02026 {
02027   protected:
02028     NodeHandle src_var;
02029     opp_string msg_var;
02030 
02031     // protected and unimplemented operator==(), to prevent accidental usage
02032     bool operator==(const GameAPIChatMessage&);
02033 
02034   public:
02035     GameAPIChatMessage(const char *name=NULL, int kind=0);
02036     GameAPIChatMessage(const GameAPIChatMessage& other);
02037     virtual ~GameAPIChatMessage();
02038     GameAPIChatMessage& operator=(const GameAPIChatMessage& other);
02039     virtual GameAPIChatMessage *dup() const {return new GameAPIChatMessage(*this);}
02040     virtual void parsimPack(cCommBuffer *b);
02041     virtual void parsimUnpack(cCommBuffer *b);
02042 
02043     // field getter/setter methods
02044     virtual NodeHandle& getSrc();
02045     virtual const NodeHandle& getSrc() const {return const_cast<GameAPIChatMessage*>(this)->getSrc();}
02046     virtual void setSrc(const NodeHandle& src_var);
02047     virtual const char * getMsg() const;
02048     virtual void setMsg(const char * msg_var);
02049 };
02050 
02051 inline void doPacking(cCommBuffer *b, GameAPIChatMessage& obj) {obj.parsimPack(b);}
02052 inline void doUnpacking(cCommBuffer *b, GameAPIChatMessage& obj) {obj.parsimUnpack(b);}
02053 
02067 class GameAPISnowMessage : public GameAPIMessage
02068 {
02069   protected:
02070     NodeHandle src_var;
02071     Vector2D start_var;
02072     Vector2D end_var;
02073     int timeSec_var;
02074     int timeUsec_var;
02075 
02076     // protected and unimplemented operator==(), to prevent accidental usage
02077     bool operator==(const GameAPISnowMessage&);
02078 
02079   public:
02080     GameAPISnowMessage(const char *name=NULL, int kind=0);
02081     GameAPISnowMessage(const GameAPISnowMessage& other);
02082     virtual ~GameAPISnowMessage();
02083     GameAPISnowMessage& operator=(const GameAPISnowMessage& other);
02084     virtual GameAPISnowMessage *dup() const {return new GameAPISnowMessage(*this);}
02085     virtual void parsimPack(cCommBuffer *b);
02086     virtual void parsimUnpack(cCommBuffer *b);
02087 
02088     // field getter/setter methods
02089     virtual NodeHandle& getSrc();
02090     virtual const NodeHandle& getSrc() const {return const_cast<GameAPISnowMessage*>(this)->getSrc();}
02091     virtual void setSrc(const NodeHandle& src_var);
02092     virtual Vector2D& getStart();
02093     virtual const Vector2D& getStart() const {return const_cast<GameAPISnowMessage*>(this)->getStart();}
02094     virtual void setStart(const Vector2D& start_var);
02095     virtual Vector2D& getEnd();
02096     virtual const Vector2D& getEnd() const {return const_cast<GameAPISnowMessage*>(this)->getEnd();}
02097     virtual void setEnd(const Vector2D& end_var);
02098     virtual int getTimeSec() const;
02099     virtual void setTimeSec(int timeSec_var);
02100     virtual int getTimeUsec() const;
02101     virtual void setTimeUsec(int timeUsec_var);
02102 };
02103 
02104 inline void doPacking(cCommBuffer *b, GameAPISnowMessage& obj) {obj.parsimPack(b);}
02105 inline void doUnpacking(cCommBuffer *b, GameAPISnowMessage& obj) {obj.parsimUnpack(b);}
02106 
02118 class GameAPIFrozenMessage : public GameAPIMessage
02119 {
02120   protected:
02121     NodeHandle src_var;
02122     int timeSec_var;
02123     int timeUsec_var;
02124 
02125     // protected and unimplemented operator==(), to prevent accidental usage
02126     bool operator==(const GameAPIFrozenMessage&);
02127 
02128   public:
02129     GameAPIFrozenMessage(const char *name=NULL, int kind=0);
02130     GameAPIFrozenMessage(const GameAPIFrozenMessage& other);
02131     virtual ~GameAPIFrozenMessage();
02132     GameAPIFrozenMessage& operator=(const GameAPIFrozenMessage& other);
02133     virtual GameAPIFrozenMessage *dup() const {return new GameAPIFrozenMessage(*this);}
02134     virtual void parsimPack(cCommBuffer *b);
02135     virtual void parsimUnpack(cCommBuffer *b);
02136 
02137     // field getter/setter methods
02138     virtual NodeHandle& getSrc();
02139     virtual const NodeHandle& getSrc() const {return const_cast<GameAPIFrozenMessage*>(this)->getSrc();}
02140     virtual void setSrc(const NodeHandle& src_var);
02141     virtual int getTimeSec() const;
02142     virtual void setTimeSec(int timeSec_var);
02143     virtual int getTimeUsec() const;
02144     virtual void setTimeUsec(int timeUsec_var);
02145 };
02146 
02147 inline void doPacking(cCommBuffer *b, GameAPIFrozenMessage& obj) {obj.parsimPack(b);}
02148 inline void doUnpacking(cCommBuffer *b, GameAPIFrozenMessage& obj) {obj.parsimUnpack(b);}
02149 
02150 
02151 #endif // _COMMONMESSAGES_M_H_

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