MAK RTIspy API Documentation for HLA 1516
 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
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
!DtIFSPEC1516
Definition: fedTimeFactory.h:190
A base class for the various save/restore messages.
Definition: saveMsg.h:20
Definition: saveTimeMsg.h:21
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:60
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:45
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:126
Definition: LogicalTime.h:27
void set(const char *theLabel)
Set all fields.

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)