MAK RTIspy API Documentation for HLA Evolved
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
saveMsg.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1998 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: saveMsg.h,v $ $Revision: 1.8 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef DtSaveMsg_H_
13
#define DtSaveMsg_H_
14
15
#include "
rtiMsg.h
"
16
#include "
netSaveMsg.h
"
17
19
20
class
DT_DLL_LRC
DtSaveMsg
:
public
DtRtiMsg
21
{
22
public
:
23
25
DtSaveMsg
();
26
28
virtual
~
DtSaveMsg
();
29
31
void
set
(
const
char
* theLabel);
32
34
virtual
void
setLabel(
const
char
* label);
35
virtual
const
char
* label()
const
;
36
38
virtual
void
setRequestID(
unsigned
long
requestIDValue);
39
virtual
unsigned
long
requestID()
const
;
40
42
virtual
void
setResult(
unsigned
char
result);
43
virtual
unsigned
char
result()
const
;
44
46
#ifdef DtIFSPEC1516
47
virtual
void
setTime
(rti1516::LogicalTime
const
& timeVal);
48
virtual
rti1516::LogicalTime
const
*
time
(
49
DtLogicalTimeFactory
* logicalTimeFactory)
const
;
50
#elif defined(DtIFSPEC1516E)
51
virtual
void
setTime
(
rti1516e::LogicalTime
const
& timeVal);
52
virtual
rti1516e::LogicalTime
const
*
time
(
53
DtLogicalTimeFactory
* logicalTimeFactory)
const
;
54
#else
55
virtual
void
setTime
(RTI::FedTime
const
& timeVal);
56
virtual
RTI::FedTime
const
*
time
(
57
DtLogicalTimeFactory
* logicalTimeFactory)
const
;
58
#endif
59
61
virtual
void
printData
(
DtLogicalTimeFactory
* logicalTimeFactory)
const
;
62
63
protected
:
64
66
virtual
DtRtiMsgKind
internalDtRtiMsgKind
();
67
69
virtual
char
* labelPtr();
70
72
virtual
char
* timePtr();
73
75
virtual
int
labelFieldSize()
const
;
76
78
virtual
int
timeFieldSize()
const
;
79
81
virtual
void
setLabelSize(
int
size);
82
virtual
int
labelSize()
const
;
83
85
virtual
void
setTimeSize(
int
size);
86
virtual
int
timeSize()
const
;
87
89
virtual
DtNetSaveMsg
* netSaveMsg();
90
virtual
const
DtNetSaveMsg
* netSaveMsg()
const
;
91
93
#ifdef DtIFSPEC1516
94
virtual
int
minSize(
char
const
* theLabel=NULL,
95
rti1516::LogicalTime
const
* theTime=NULL)
const
;
96
#elif defined(DtIFSPEC1516E)
97
virtual
int
minSize(
char
const
* theLabel=NULL,
98
rti1516e::LogicalTime
const
* theTime=NULL)
const
;
99
#else
100
virtual
int
minSize(
char
const
* theLabel=NULL,
101
RTI::FedTime
const
* theTime=NULL)
const
;
102
#endif
103
105
virtual
DtSaveMsg
*
self
()
const
;
106
107
protected
:
108
109
char
*
myLabel
;
110
};
111
112
113
inline
DtSaveMsg
*
DtSaveMsg::self
()
const
114
{
115
return
const_cast<
DtSaveMsg
*
>
( this );
116
}
117
118
#endif
Document ID: Generated on Mon Mar 21 09:41:37 EDT 2016 from SVN revision 163228
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (
www.mak.com
)