MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
conSyncMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: conSyncMsg.h,v $ $Revision: 1.8 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtConstrainedSyncMsg_H_
13 #define DtConstrainedSyncMsg_H_
14 
15 #ifdef DtTIME
16 
17 #include "timeTwoMsg.h"
18 
19 class DtConnectionMgr;
20 class DtConstrainedSyncMsg;
21 typedef void (*DtConstrainedSyncCb)(const DtConstrainedSyncMsg& msg, void* usr);
22 
23 class DT_DLL_LRC DtConstrainedSyncMsg : public DtTimeLookaheadMsg
24 {
25 public:
26 
28  DtConstrainedSyncMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
29 
31  DtConstrainedSyncMsg(
32 #ifdef DtIFSPEC1516
33  rti1516::LogicalTime const & theTime,
34  rti1516::LogicalTimeInterval const & theLookahead,
35 #elif defined(DtIFSPEC1516E)
36  rti1516e::LogicalTime const & theTime,
37  rti1516e::LogicalTimeInterval const & theLookahead,
38 #else
39  const RTI::FedTime& theTime,
40  const RTI::FedTime& theLookahead,
41 #endif
42  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
43 
45  DtConstrainedSyncMsg(const DtNetTimeLookaheadMsg* netRepMsg,
46  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
47 
49  virtual DtRtiMsg* clone(bool copy = true) const;
50 
52  virtual ~DtConstrainedSyncMsg();
53 
54 public:
55 
57  static DtRtiMsg* create(const DtNetMsgHeader* initial,
58  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
59 
61  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
62 
64  static void addCallback(DtConnectionMgr *conn,
65  DtConstrainedSyncCb cb, void *usr);
66  static void removeCallback(DtConnectionMgr *conn,
67  DtConstrainedSyncCb cb, void *usr);
68 
69 protected:
70 
72  DtRtiMsgKind internalDtRtiMsgKind();
73 
74 };
75 
76 #endif
77 #endif
78 
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:60
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:45
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)