VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
hLinearObjPub.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
* hLinearObjPub.h
7
*********************************************************************/
8
9
#if DtHLA
10
11
#ifndef hLinearObjPub_H_
12
#define hLinearObjPub_H_
13
14
#include "
hObjPub.h
"
15
#include "
objectType.h
"
16
20
21
class
DT_DLL_VL
DtLinearObjectRepository
;
22
39
40
class
DT_DLL_VL
DtLinearObjectPublisher
:
public
DtObjectPublisher
41
{
42
public
:
43
46
typedef
DtLinearObjectRepository
* (*DtStateRepCreator)();
47
48
public
:
49
51
DtLinearObjectPublisher
(
52
DtLinearObjectRepository
*stateRepToUse,
53
DtExerciseConn
* conn,
54
const
char
* name = 0,
55
const
DtDDMRegionSet
* regionSetToUse = 0);
56
58
DtLinearObjectPublisher
(
59
RTI::ObjectClassHandle h,
60
DtExerciseConn
* conn,
61
const
char
* name = 0,
62
const
DtDDMRegionSet
* regionSetToUse = 0);
63
65
DtLinearObjectPublisher
(
66
const
DtSyntheticEnvironmentObjectType
& type,
67
DtExerciseConn
* conn,
68
const
char
* name = 0,
69
const
DtDDMRegionSet
* regionSetToUse = 0);
70
72
virtual
~
DtLinearObjectPublisher
();
73
76
virtual
DtLinearObjectRepository
* linearObjectStateRep();
77
79
virtual
DtLinearObjectRepository
* losr();
80
81
public
:
82
84
static
DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
85
86
protected
:
87
89
DtLinearObjectPublisher
(
const
DtLinearObjectPublisher
& orig);
90
92
DtLinearObjectPublisher
&
operator
=
93
(
const
DtLinearObjectPublisher
& orig);
94
95
//Non-virtual method called from constructor.
96
const
char
* objectClassNameFromType
97
(
const
DtSyntheticEnvironmentObjectType
& type);
98
99
protected
:
100
101
static
DtStateRepCreator
theStateRepCreator
;
102
};
103
104
inline
DtLinearObjectRepository
*
105
DtLinearObjectPublisher::linearObjectStateRep
()
106
{
107
return
(
DtLinearObjectRepository
*)
myStateRep
;
108
}
109
110
inline
DtLinearObjectRepository
*
DtLinearObjectPublisher::losr
()
111
{
112
return
(
DtLinearObjectRepository
*)
myStateRep
;
113
}
114
115
#endif //hLinearObjPub_H_
116
#endif //DtHLA
117
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
)