MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
savCompMsg.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: savCompMsg.h,v $ $Revision: 1.9 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef DtSaveCompleteMsg_H_
13 #define DtSaveCompleteMsg_H_
14 
15 #include "saveMsg.h"
16 
17 class DtConnectionMgr;
18 class DtSaveCompleteMsg;
19 typedef void (*DtSaveCompleteCb)(const DtSaveCompleteMsg& msg, void* usr);
20 
21 
23 {
24 public:
25 
27  DtSaveCompleteMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
28 
31  const char* theLabel,
32  const bool success,
33  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
34 
36  DtSaveCompleteMsg(const DtNetSaveMsg* netRepMsg,
37  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
38 
40  virtual ~DtSaveCompleteMsg();
41 
43  virtual DtRtiMsg* clone(bool copy = true) const;
44 
46  void set(const char* theLabel, const bool success, bool adjustBufferSize = true);
47 
49  virtual void setSuccessIndicator(const bool success);
50  virtual bool successIndicator() const;
51 
53  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
54 
55 public:
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  DtSaveCompleteCb cb, void *usr);
66  static void removeCallback(DtConnectionMgr *conn,
67  DtSaveCompleteCb cb, void *usr);
68 
69 protected:
70 
73 
74 protected:
75 
76 };
77 
78 #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: savCompMsg.h:22
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.
Definition: netSaveMsg.h:19
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
void(* DtSaveCompleteCb)(const DtSaveCompleteMsg &msg, void *usr)
Definition: savCompMsg.h:19

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)