MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
saveTimeMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: saveTimeMsg.h,v $ $Revision: 1.8 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtSaveTimeMsg_H_
13 #define DtSaveTimeMsg_H_
14 
15 #include "saveMsg.h"
16 
17 class DtConnectionMgr;
18 class DtSaveTimeMsg;
19 typedef void (*DtSaveTimeCb)(const DtSaveTimeMsg& msg, void* usr);
20 
22 {
23 public:
24 
26  DtSaveTimeMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
27 
29 #ifdef DtIFSPEC1516
31  const char* theLabel,
32  rti1516::LogicalTime const & timeVal,
33  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
34 #elif defined(DtIFSPEC1516E)
36  const char* theLabel,
37  rti1516e::LogicalTime const & timeVal,
38  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
39 #else
41  const char* theLabel,
42  RTI::FedTime const & timeVal,
43  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
44 #endif
45 
47  DtSaveTimeMsg(const DtNetSaveMsg* netRepMsg,
48  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
49 
51  virtual ~DtSaveTimeMsg();
52 
54  virtual DtRtiMsg* clone(bool copy = true) const;
55 
57 #ifdef DtIFSPEC1516
58  virtual void set(const char* theLabel, rti1516::LogicalTime const & timeVal);
59 #elif defined(DtIFSPEC1516E)
60  virtual void set(const char* theLabel, rti1516e::LogicalTime const & timeVal);
61 #else
62  virtual void set(const char* theLabel, RTI::FedTime const & timeVal);
63 #endif
64 
66  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
67 
68 
69 public:
70 
72  static DtRtiMsg* create(const DtNetMsgHeader* initial,
73  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
74 
76  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
77 
79  static void addCallback(DtConnectionMgr *conn,
80  DtSaveTimeCb cb, void *usr, bool isMomCallback=false);
81  static void removeCallback(DtConnectionMgr *conn,
82  DtSaveTimeCb cb, void *usr, bool isMomCallback=false);
83 
84 protected:
85 
88 
89 protected:
90 
91 };
92 
93 #endif

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)