MAK RTIspy API Documentation for HLA 1.3
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);
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

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)