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