VR-Link API Documentation for HLA 1.3
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
activeSonarStateRepository.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
#include <
vl/underwaterAcousticsEmissionRepository.h
>
13
#include <
vl/activeSonarBeamRepository.h
>
14
#include <
vlutil/vlList.h
>
15
17
enum
DtSonarBeamRetCode
18
{
19
DtSonarBeamSuccess
,
20
DtBadSonarBeamId
,
21
DtDuplicateSonarBeamId
22
};
23
29
class
DT_DLL_VL
DtActiveSonarStateRepository
:
public
DtUnderwaterAcousticsEmissionRepository
30
{
31
public
:
32
34
typedef
DtActiveSonarBeamRepository
* (*DtBeamStateRepCreator)();
35
36
public
:
37
39
static
DtActiveSonarStateRepository
*
create
();
40
42
DtActiveSonarStateRepository
();
43
45
virtual
~
DtActiveSonarStateRepository
();
46
48
DtActiveSonarStateRepository
(
const
DtActiveSonarStateRepository
& orig );
49
51
DtActiveSonarStateRepository
&
operator =
(
52
const
DtActiveSonarStateRepository
& orig );
53
55
virtual
DtStateRepository
*
clone
(
bool
copy )
const
;
56
58
static
DtBeamStateRepCreator setStateRepCreator( DtBeamStateRepCreator creator );
59
61
virtual
void
printData
()
const
;
62
64
virtual
void
printDataToStream
( std::ostream& stream )
const
;
65
67
virtual
void
setAcousticName(
DtUnderwaterAcousticSystemName
val );
68
70
virtual
DtUnderwaterAcousticSystemName
acousticName()
const
;
71
73
virtual
void
setFunctionCode(
DtUnderwaterAcousticFunction
val );
74
76
virtual
DtUnderwaterAcousticFunction
functionCode()
const
;
77
79
virtual
void
setAcousticsIdentifier(
DtU8
val );
80
82
virtual
DtU8
acousticsIdentifier()
const
;
83
85
virtual
DtActiveSonarBeamRepository
* beamSRById(
86
DtU8
beamId,
DtSonarBeamRetCode
* retcode = NULL );
87
92
virtual
DtActiveSonarBeamRepository
* addBeam(
93
DtU8
beamId = 0,
DtSonarBeamRetCode
* retcode = NULL);
94
100
virtual
DtSonarBeamRetCode
removeBeam(
DtU8
beamId );
101
#if DtHLA
102
virtual
DtSonarBeamRetCode
removeBeam(
const
DtGlobalObjectDesignator
&
id
);
103
#endif
104
106
virtual
int
numBeams()
const
;
107
109
virtual
const
DtList
* beamList()
const
;
110
virtual
DtList
* beamList();
111
113
bool
isMember(
DtActiveSonarBeamRepository
* bsr)
const
;
114
115
protected
:
116
117
virtual
void
purgeBeamList();
118
119
static
DtBeamStateRepCreator
theBeamStateRepCreator
;
120
121
protected
:
122
123
DtUnderwaterAcousticSystemName
myAcousticName
;
124
DtUnderwaterAcousticFunction
myFunctionCode
;
125
DtU8
myAcousticsIdentifier
;
126
128
DtList
myBeamList
;
129
130
};
Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)