![]() |
MAK RTIspy API Documentation for HLA Evolved
|
00001 /********************************************************************* 00002 ** Copyright (c) 1998 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: enableConMsg.h,v $ $Revision: 1.9 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtEnableConstrainedMsg_H_ 00013 #define DtEnableConstrainedMsg_H_ 00014 00015 #ifdef DtTIME 00016 00017 #include "timeTwoMsg.h" 00018 00019 class DtConnectionMgr; 00020 class DtEnableConstrainedMsg; 00021 typedef void (*DtEnableConstrainedCb)(const DtEnableConstrainedMsg& msg, void* usr); 00022 00023 class DT_DLL_LRC DtEnableConstrainedMsg : public DtTimeLookaheadMsg 00024 { 00025 public: 00026 00028 DtEnableConstrainedMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00029 00031 #ifdef DtIFSPEC1516 00032 DtEnableConstrainedMsg( 00033 rti1516::LogicalTime const & timeVal, 00034 rti1516::LogicalTimeInterval const & lookaheadVal, 00035 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00036 #elif defined(DtIFSPEC1516E) 00037 DtEnableConstrainedMsg( 00038 rti1516e::LogicalTime const & timeVal, 00039 rti1516e::LogicalTimeInterval const & lookaheadVal, 00040 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00041 #else 00042 DtEnableConstrainedMsg( 00043 RTI::FedTime const & timeVal, 00044 RTI::FedTime const & lookaheadVal, 00045 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00046 #endif 00047 00049 DtEnableConstrainedMsg(const DtNetTimeLookaheadMsg* netRepMsg, 00050 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00051 00053 virtual ~DtEnableConstrainedMsg(); 00054 00056 virtual DtRtiMsg* clone(bool copy = true) const; 00057 00058 public: 00059 00061 static DtRtiMsg* create(const DtNetMsgHeader* initial, 00062 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00063 00065 static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00066 00068 static void addCallback(DtConnectionMgr *conn, 00069 DtEnableConstrainedCb cb, void *usr); 00070 static void removeCallback(DtConnectionMgr *conn, 00071 DtEnableConstrainedCb cb, void *usr); 00072 00073 protected: 00074 00076 DtRtiMsgKind internalDtRtiMsgKind(); 00077 00078 protected: 00080 }; 00081 00082 #endif 00083 #endif