MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
savFinMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: savFinMsg.h,v $ $Revision: 1.10 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtSaveFinishMsg_H_
13 #define DtSaveFinishMsg_H_
14 
15 #include "saveMsg.h"
16 
17 class DtConnectionMgr;
18 class DtSaveFinishedMsg;
19 typedef void (*DtSaveFinishedCb)(const DtSaveFinishedMsg& msg, void* usr);
20 
22 {
30 };
31 
33 {
34 public:
35 
37  DtSaveFinishedMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
38 
41  const char* theLabel,
42  DtSaveFinishedResult result,
43  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
44 
46  DtSaveFinishedMsg(const DtNetSaveMsg* netRepMsg,
47  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
48 
50  virtual ~DtSaveFinishedMsg();
51 
53  virtual DtRtiMsg* clone(bool copy = true) const;
54 
56  virtual void set(const char* theLabel, DtSaveFinishedResult theResult);
57 
59  virtual void setFinishedResult(DtSaveFinishedResult theResult);
60  virtual DtSaveFinishedResult finishedResult() const;
61 
62 public:
63 
65  static DtRtiMsg* create(const DtNetMsgHeader* initial,
66  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
67 
69  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
70 
72  static void addCallback(DtConnectionMgr *conn,
73  DtSaveFinishedCb cb, void *usr);
74  static void removeCallback(DtConnectionMgr *conn,
75  DtSaveFinishedCb cb, void *usr);
76 
77 protected:
78 
81 
82 protected:
83 
84 };
85 
86 #endif
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: savFinMsg.h:32
Definition: netRtiMsgHdr.h:23
DtSaveFinishedResult
Definition: savFinMsg.h:21
Definition: savFinMsg.h:28
A base class for the various save/restore messages.
Definition: saveMsg.h:20
virtual DtRtiMsgKind internalDtRtiMsgKind()
Returns the kind of this message.
Definition: savFinMsg.h:26
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
void(* DtSaveFinishedCb)(const DtSaveFinishedMsg &msg, void *usr)
Definition: savFinMsg.h:19
Definition: savFinMsg.h:27
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
Definition: savFinMsg.h:25
Definition: netSaveMsg.h:19
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
Definition: savFinMsg.h:29
void set(const char *theLabel)
Set all fields.
Definition: savFinMsg.h:24
Definition: savFinMsg.h:23

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)