VR-Link API Documentation for DIS
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
propulsionNoisePublisherDIS.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 DtDIS
13
14
#include <
vl/objectPublisherDIS.h
>
15
#include <
vl/propulsionNoiseStateRepository.h
>
16
17
class
DtPropulsionNoiseEncoder
;
18
class
DtPropulsionNoiseDecoder
;
19
23
class
DT_DLL_VL
DtPropulsionNoisePublisher
:
public
DtObjectPublisher
24
{
25
public
:
26
28
typedef
DtPropulsionNoiseStateRepository
* (*DtStateRepCreator)();
29
30
public
:
31
33
DtPropulsionNoisePublisher
(
DtPropulsionNoiseStateRepository
* stateRepToUse,
34
DtExerciseConn
* conn,
const
DtObjectId
&
id
=
DtObjectId::defaultId
() );
35
37
DtPropulsionNoisePublisher
(
DtExerciseConn
* conn,
38
const
DtObjectId
&
id
=
DtObjectId::defaultId
() );
39
41
DtPropulsionNoisePublisher
(
DtExerciseConn
* conn,
const
char
* name,
42
const
DtObjectId
&
id
=
DtObjectId::defaultId
() );
43
45
virtual
~
DtPropulsionNoisePublisher
();
46
48
virtual
DtPropulsionNoiseStateRepository
* propNoiseStateRep();
49
virtual
DtPropulsionNoiseStateRepository
* psr();
50
52
virtual
void
tick
();
53
55
virtual
void
forceUpdate
();
56
58
virtual
const
DtObjectId
&
id
()
const
;
59
virtual
const
DtObjectId
&
localId
()
const
;
60
62
virtual
const
DtGlobalObjectDesignator
&
globalId
()
const
;
63
64
public
:
65
67
static
void
setStateRepCreator( DtStateRepCreator creator );
68
static
DtStateRepCreator stateRepCreator();
69
70
static
void
setClassDfltTimeThreshold(
DtTime
threshold );
71
72
protected
:
73
75
void
init(
const
char
* name,
const
DtEntityIdentifier
&
id
);
76
78
DtPropulsionNoisePublisher
(
const
DtPropulsionNoisePublisher
& orig );
79
81
DtPropulsionNoisePublisher
&
operator =
(
const
DtPropulsionNoisePublisher
& orig );
82
83
protected
:
84
85
DtObjectId
myId
;
86
DtPropulsionNoiseDecoder
*
myPropulsionNoiseDecoder
;
87
DtPropulsionNoiseEncoder
*
myPropulsionNoiseEncoder
;
88
89
protected
:
90
91
static
DtStateRepCreator
theStateRepCreator
;
92
static
DtTime
theClassDfltTimeThreshold
;
93
static
bool
theClassDfltIsSetFlag
;
94
char
*
myName
;
95
96
};
97
98
inline
DtPropulsionNoiseStateRepository
*
DtPropulsionNoisePublisher::psr
()
99
{
100
return
static_cast<
DtPropulsionNoiseStateRepository
*
>
(
myStateRep
);
101
}
102
103
#endif
Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (
www.mak.com
)