VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vl
activeSonarPublisherHLA.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2013 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#if DtHLA
13
14
#include "
vl/objectPublisherHLA.h
"
15
#include "
vl/activeSonarBeamPublisher.h
"
16
17
class
DtActiveSonarStateRepository
;
18
23
class
DT_DLL_VL
DtActiveSonarPublisher
:
public
DtObjectPublisher
24
{
25
public
:
26
28
typedef
DtActiveSonarStateRepository
* (*DtStateRepCreator)();
29
30
public
:
31
33
DtActiveSonarPublisher
(
34
DtActiveSonarStateRepository
* stateRepToUse,
35
DtExerciseConn
* conn,
36
const
char
* name = 0,
37
const
DtDDMRegionSet
* regionSetToUse = 0);
38
40
DtActiveSonarPublisher
(
41
RTI::ObjectClassHandle h,
42
DtExerciseConn
* conn,
43
const
char
* name = 0,
44
const
DtDDMRegionSet
* regionSetToUse = 0);
45
47
DtActiveSonarPublisher
(
48
DtExerciseConn
* conn,
49
const
char
* name = 0,
50
const
DtDDMRegionSet
* regionSetToUse = 0);
51
57
DtActiveSonarPublisher
(
DtHlaObjectWithStateRep
* obj,
DtExerciseConn
* conn);
58
60
virtual
~
DtActiveSonarPublisher
();
61
64
virtual
DtActiveSonarStateRepository
* activeSonarStateRep();
65
67
virtual
DtActiveSonarStateRepository
* asr();
68
71
virtual
const
char
* classToUse()
const
;
72
73
75
virtual
void
tick
();
76
80
virtual
void
forceUpdate
();
81
85
virtual
void
forceUpdate
(
const
RTI::AttributeHandleSet&
set
);
86
public
:
88
static
DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
89
90
protected
:
91
92
96
virtual
void
syncBeamList();
97
100
virtual
DtActiveSonarBeamPublisher
* publisherForAsr(
101
DtActiveSonarBeamRepository
* bsr);
102
104
virtual
int
numBeams()
const
;
105
106
protected
:
107
109
DtList
myBeamPubs
;
110
bool
myTickedFirstTime
;
111
112
static
DtStateRepCreator
theStateRepCreator
;
113
114
protected
:
116
DtActiveSonarPublisher
(
const
DtActiveSonarPublisher
& orig);
117
119
DtActiveSonarPublisher
&
operator=
(
const
DtActiveSonarPublisher
& orig);
120
};
121
122
inline
DtActiveSonarStateRepository
*
DtActiveSonarPublisher::activeSonarStateRep
()
123
{
124
return
(
DtActiveSonarStateRepository
*)
myStateRep
;
125
}
126
127
inline
DtActiveSonarStateRepository
*
DtActiveSonarPublisher::asr
()
128
{
129
return
(
DtActiveSonarStateRepository
*)
myStateRep
;
130
}
131
132
#endif
Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)