MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
resumeConMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: resumeConMsg.h,v $ $Revision: 1.9 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtResumeConstrainedMsg_H_
13 #define DtResumeConstrainedMsg_H_
14 
15 #ifdef DtTIME
16 
17 #include "lbtsMsg.h"
18 
19 class DtConnectionMgr;
20 class DtResumeConstrainedMsg;
21 typedef void (*DtResumeConstrainedCb)(const DtResumeConstrainedMsg& msg, void* usr);
22 
23 class DT_DLL_LRC DtResumeConstrainedMsg : public DtLbtsMsg
24 {
25 public:
26 
28  DtResumeConstrainedMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
29 
31  DtResumeConstrainedMsg(
32  DtFederateHandle handle,
33 #ifdef DtIFSPEC1516
34  rti1516::LogicalTime const & lbtsVal,
35  rti1516::LogicalTime const & lagLbtsVal,
36 #elif defined(DtIFSPEC1516E)
37  rti1516e::LogicalTime const & lbtsVal,
38  rti1516e::LogicalTime const & lagLbtsVal,
39 #else
40  const RTI::FedTime& lbtsVal,
41  const RTI::FedTime& lagLbtsVal,
42 #endif
43  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
44 
46  DtResumeConstrainedMsg(const DtNetLbts* netRepMsg,
47  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
48 
50  virtual ~DtResumeConstrainedMsg();
51 
53  virtual DtRtiMsg* clone(bool copy = true) const;
54 
56 #ifdef DtIFSPEC1516
57  virtual void set(
58  DtFederateHandle handle,
59  rti1516::LogicalTime const & lbtsVal,
60  rti1516::LogicalTime const & lagLbtsVal);
61 #elif defined(DtIFSPEC1516E)
62  virtual void set(
63  DtFederateHandle handle,
64  rti1516e::LogicalTime const & lbtsVal,
65  rti1516e::LogicalTime const & lagLbtsVal);
66 #else
67  virtual void set(
68  DtFederateHandle handle,
69  RTI::FedTime const & lbtsVal,
70  RTI::FedTime const & lagLbtsVal);
71 #endif
72 
73 public:
74 
76  static DtRtiMsg* create(const DtNetMsgHeader* initial,
77  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
78 
80  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
81 
83  static void addCallback(DtConnectionMgr *conn,
84  DtResumeConstrainedCb cb, void *usr);
85  static void removeCallback(DtConnectionMgr *conn,
86  DtResumeConstrainedCb cb, void *usr);
87 
88 protected:
89 
91  DtRtiMsgKind internalDtRtiMsgKind();
92 
93 };
94 
95 #endif
96 #endif
97 

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)