MAK RTIspy API Documentation for HLA 1.3
 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  DtSaveTimeMsg(const char* theLabel, DtRtiApiTime const & timeVal, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
30 
32  DtSaveTimeMsg(const DtNetSaveMsg* netRepMsg, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
33 
35  virtual ~DtSaveTimeMsg();
36 
38  virtual DtRtiMsg* clone(bool copy = true) const;
39 
41  virtual void set(const char* theLabel, DtRtiApiTime const & timeVal, bool adjustBufferSize = true);
42 
44  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
45 
46 
47 public:
48 
50  static DtRtiMsg* create(const DtNetMsgHeader* initial, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
51 
53  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
54 
56  static void addCallback(DtConnectionMgr *conn, DtSaveTimeCb cb, void *usr, bool isMomCallback=false);
57  static void removeCallback(DtConnectionMgr *conn, DtSaveTimeCb cb, void *usr, bool isMomCallback=false);
58 
59 protected:
60 
63 
64 protected:
65 
66 };
67 
68 #endif
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
Definition: fedTimeFactory.h:73
A base class for the various save/restore messages.
Definition: saveMsg.h:20
Definition: saveTimeMsg.h:21
RTI_API::LogicalTime DtRtiApiTime
Typedefs for RTI API types that frequently require conditional precompile directives.
Definition: rtiApiTypes.h:91
virtual DtRtiMsgKind internalDtRtiMsgKind()
Returns the kind of this message.
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:67
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:34
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
Print the data section.
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
void(* DtSaveTimeCb)(const DtSaveTimeMsg &msg, void *usr)
Definition: saveTimeMsg.h:19
Definition: netSaveMsg.h:19
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)