VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
reflectedDesignatorDIS.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*******************************************************************************/
5
6
9
10
#ifndef DtDisReflectedDesignator_H_
11
#define DtDisReflectedDesignator_H_
12
13
#if DtDIS
14
15
16
#include "
designatorRepository.h
"
17
#include "
designatorDecoderDIS.h
"
18
#include "
reflectedObjectDIS.h
"
19
#include "
systemHashKey.h
"
20
21
22
class
DT_DLL_VL
DtReflectedDesignator
;
23
26
typedef
void (*
DtDesignatorCallbackFunction
)(
DtReflectedDesignator
*,
void
* );
27
31
class
DT_DLL_VL
DtReflectedDesignator
:
public
DtReflectedObject
32
{
33
public
:
34
36
typedef
DtDesignatorRepository
* (*DtStateRepCreator)();
37
38
public
:
39
41
DtReflectedDesignator
(
DtExerciseConn
* conn,
42
const
DtGlobalObjectDesignator
& designatingEntity,
int
designatorCode );
43
45
virtual
~
DtReflectedDesignator
();
46
47
48
public
:
50
virtual
inline
DtDesignatorRepository
*
designatorRep
()
const
{
return
myStateRepository; }
51
53
virtual
inline
DtDesignatorRepository
*
dsr
()
const
{
return
myStateRepository; }
54
57
virtual
inline
DtStateRepository
*
stateRep
()
const
{
return
myStateRepository; }
58
60
virtual
inline
DtDesignatorDecoder
*
decoder
() {
return
&myDecoder; }
61
64
virtual
void
processStateMessage
(
const
DtStateMsg
& msg );
65
67
virtual
DtReflectedDesignator
*
next
()
const
;
68
70
virtual
DtReflectedDesignator
*
prev
()
const
;
71
74
virtual
DtReflectedDesignator
*
wrapNext
()
const
;
75
78
virtual
DtReflectedDesignator
*
wrapPrev
()
const
;
79
81
virtual
void
addPostUpdateCallback(
82
DtDesignatorCallbackFunction
cb,
void
* userData );
83
84
virtual
void
removePostUpdateCallback(
85
DtDesignatorCallbackFunction
cb,
void
* userData );
86
88
virtual
inline
const
DtBaseHashKey
&
hashKey
()
const
{
return
myHashKey; }
89
91
virtual
inline
DtString
idString
()
const
{
return
myIdString; }
92
95
virtual
const
DtGlobalObjectDesignator
&
globalId
()
const
;
96
97
public
:
99
static
void
setStateRepCreator(DtStateRepCreator creator);
100
static
DtStateRepCreator stateRepCreator(
void
);
101
102
protected
:
103
105
DtReflectedDesignator
(
const
DtReflectedDesignator
& );
106
108
DtReflectedDesignator
&
operator=
(
const
DtReflectedDesignator
& );
109
110
protected
:
111
112
static
DtStateRepCreator
theStateRepCreator
;
113
114
protected
:
115
116
DtSystemHashKey
myHashKey
;
117
DtString
myIdString
;
118
DtDesignatorRepository
*
myStateRepository
;
119
DtDesignatorDecoder
myDecoder
;
120
};
121
122
123
#endif
124
125
#endif
126
Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)