MAK RTIspy API Documentation for HLA 1516
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
libsrc
RTI
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
21
enum
DtSaveFinishedResult
22
{
23
DtSaveFinishedSuccess
,
24
DtSaveFinishedRtiUnableToSave
,
25
DtSaveFinishedFederateFailure
,
26
DtSaveFinishedFederateResigned
,
27
DtSaveFinishedFailureDetected
,
28
DtSaveFinishedInvalidSaveTime
,
29
DtSaveFinishedAborted
30
};
31
32
class
DT_DLL_LRC
DtSaveFinishedMsg
:
public
DtSaveMsg
33
{
34
public
:
35
37
DtSaveFinishedMsg
(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
38
40
DtSaveFinishedMsg
(
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
80
virtual
DtRtiMsgKind
internalDtRtiMsgKind
();
81
82
protected
:
83
84
};
85
86
#endif
Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (
www.mak.com
)