MAK RTIspy API Documentation for HLA Evolved
networkMapReqMsg.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2007 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: networkMapReqMsg.h,v $ $Revision: 1.3 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtNetworkMapReqMsg_H_
00013 #define DtNetworkMapReqMsg_H_
00014 
00015 #include "rtiMsg.h"
00016 #include "rtiMsConfig.h"
00017 #include "netNetworkMapReqMsg.h"
00018 
00019 class DtConnectionMgr;
00020 class DtNetworkMapReqMsg;
00021 class DtLogicalTimeFactory;
00022 typedef void (*DtNetworkMapRequestCb)(const DtNetworkMapReqMsg& msg, void* usr);
00023 
00024 
00025 class DT_DLL_LRC DtNetworkMapReqMsg : public DtRtiMsg
00026 {
00027 
00028 public:
00029    
00031    DtNetworkMapReqMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00032 
00034    DtNetworkMapReqMsg(unsigned long sourceId, unsigned long requestorId, 
00035       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00036 
00038    DtNetworkMapReqMsg(const DtNetNetworkMapReqMsg* netRep,
00039       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00040 
00042    virtual ~DtNetworkMapReqMsg();
00043 
00045    virtual DtRtiMsg* clone(bool copy = true) const; 
00046 
00049    virtual unsigned long sourceId() const;
00050    virtual void setSourceId( unsigned long connId );
00051 
00055    virtual unsigned long requestorId() const;
00056    virtual void setRequestorId( unsigned long connId );
00057 
00059    virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
00060 
00061 public:
00062 
00064    static DtRtiMsg* create(const DtNetMsgHeader* initial,
00065       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00066 
00067    static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00068 
00070    static void addCallback(DtConnectionMgr* conn, DtNetworkMapRequestCb cb, void* usr);
00071    static void removeCallback(DtConnectionMgr* conn, DtNetworkMapRequestCb cb, void* usr);
00072 
00073 protected:
00074 
00076    virtual DtNetNetworkMapReqMsg* netNetworkMapReqMsg();
00077    virtual const DtNetNetworkMapReqMsg* netNetworkMapReqMsg() const;
00078 
00080    virtual DtRtiMsgKind internalDtRtiMsgKind();
00081 
00083    virtual int minSize() const;
00084 
00085 };
00086 
00087 #endif  //! DtNetworkMapReqMsg_H_
00088 

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)