VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
hEmittrSysPub.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
8
#pragma once
9
#if DtHLA
10
11
#include "
hObjPub.h
"
12
13
14
class
DtEmitterSystemRepository
;
15
class
DtEmitterBeamPublisher
;
16
class
DtEmitterBeamRepository
;
17
22
class
DT_DLL_VL
DtEmitterSystemPublisher
:
public
DtObjectPublisher
23
{
24
public
:
25
27
typedef
DtEmitterSystemRepository
* (*DtStateRepCreator)();
28
29
public
:
30
32
DtEmitterSystemPublisher
(
33
DtEmitterSystemRepository
*stateRepToUse,
34
DtExerciseConn
* conn,
35
const
char
* name = 0,
36
const
DtDDMRegionSet
* regionSetToUse = 0);
37
39
DtEmitterSystemPublisher
(
40
RTI::ObjectClassHandle h,
41
DtExerciseConn
* conn,
42
const
char
* name = 0,
43
const
DtDDMRegionSet
* regionSetToUse = 0);
44
46
DtEmitterSystemPublisher
(
47
DtExerciseConn
* conn,
48
const
char
* name = 0,
49
const
DtDDMRegionSet
* regionSetToUse = 0);
50
56
DtEmitterSystemPublisher
(
DtHlaObjectWithStateRep
* obj,
DtExerciseConn
* conn);
57
59
virtual
~
DtEmitterSystemPublisher
();
60
61
private
:
63
DtEmitterSystemPublisher
(
const
DtEmitterSystemPublisher
& orig);
64
66
DtEmitterSystemPublisher
&
operator
=
67
(
const
DtEmitterSystemPublisher
& orig);
68
69
public
:
70
73
virtual
DtEmitterSystemRepository
* emitterSystemRep();
74
76
virtual
DtEmitterSystemRepository
* esr();
77
80
virtual
const
char
* classToUse()
const
;
81
83
virtual
void
tick
();
84
88
virtual
void
forceUpdate
();
89
93
virtual
void
forceUpdate
(
const
RTI::AttributeHandleSet&
set
);
94
95
public
:
96
98
static
DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
99
100
protected
:
101
102
106
virtual
void
syncBeamList();
107
110
virtual
DtEmitterBeamPublisher
* publisherForBsr(
111
DtEmitterBeamRepository
* bsr);
112
114
virtual
int
numBeams()
const
;
115
116
protected
:
117
119
DtList
myBeamPubs
;
120
bool
myTickedFirstTime
;
121
122
protected
:
123
124
static
DtStateRepCreator
theStateRepCreator
;
125
};
126
127
inline
DtEmitterSystemRepository
*
DtEmitterSystemPublisher::emitterSystemRep
()
128
{
129
return
(
DtEmitterSystemRepository
*)
myStateRep
;
130
}
131
132
inline
DtEmitterSystemRepository
*
DtEmitterSystemPublisher::esr
()
133
{
134
return
(
DtEmitterSystemRepository
*)
myStateRep
;
135
}
136
137
#endif
138
Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)