MAK RTIspy API Documentation for HLA Evolved
testMgrStatusMsg.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2008 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: testMgrStatusMsg.h,v $ $Revision: 1.3 $ $State: Exp $
00007 *********************************************************************/
00008 
00009 #ifndef DtTestMgrStatusMsg_H_
00010 #define DtTestMgrStatusMsg_H_
00011 
00015 
00016 // PLEASE NOTE: This class is duplicated as DtAssistantTestMgrStatusMsg 
00017 // in assistantTestMgrStatusMsg.h. Any changes made to this class 
00018 // should also be made there.
00019 
00020 #include <vlutil/vlString.h>
00021 #include <vlutil/vlUtil.h>
00022 
00023 #include "rtiMsg.h"
00024 #include "netTestMgrStatusMsg.h"
00025 #include <map>
00026 
00027 class DtConnectionMgr;
00028 class DtTestMgrStatusMsg;
00029 
00030 typedef void (*DtTestMgrStatusCb)(const DtTestMgrStatusMsg& report, void* usr);
00031 
00032 
00036 class DT_DLL_LRC DtTestMgrStatusMsg : public DtRtiMsg
00037 {
00038 public:
00039    
00040 
00042    DtTestMgrStatusMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00043 
00044    DtTestMgrStatusMsg( int fedExHandle,
00045                        int fedHandle,
00046                        bool testingEnabled,
00047                        bool testCapable,
00048                        bool isContinuous,
00049                        bool inProgress,
00050                        int numInitiated,
00051                        int numReports,
00052                        DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00053 
00054    DtTestMgrStatusMsg(const DtNetTestMgrStatusMsg* netRepMsg,
00055       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00056 
00058    virtual ~DtTestMgrStatusMsg();
00059 
00061    virtual DtRtiMsg* clone(bool copy = true) const;
00062 
00064    virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
00065 
00067    virtual bool testingEnabled() const;
00068 
00070    virtual bool testCapable() const;
00071 
00073    virtual bool continuousTesting() const;
00074 
00076    virtual bool testInProgress() const;
00077 
00079    virtual unsigned numTestsInitiated() const;
00080 
00082    virtual unsigned numTestReports() const;
00083 
00084 public:
00085 
00087    static DtRtiMsg* create(const DtNetMsgHeader* initial,
00088       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00089 
00090    static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00091 
00094    static void addCallback(DtConnectionMgr* conn,
00095       DtTestMgrStatusCb cb, void* usr);
00096    static void removeCallback(DtConnectionMgr* conn,
00097       DtTestMgrStatusCb cb, void* usr);
00098 
00099       
00100 protected:
00101 
00103    virtual DtNetTestMgrStatusMsg* netTestMgrStatusMsg();
00104    virtual const DtNetTestMgrStatusMsg* netTestMgrStatusMsg() const;
00105 
00107    virtual DtRtiMsgKind internalDtRtiMsgKind();
00108 
00109 };
00110 
00111 #endif

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)