MAK RTIspy API Documentation for HLA 1516
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
examples
hlaBounce
objParams1516.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2010 MaK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: .h,v $ $Revision: 1.2 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef ObjectParams1516_H_
10
#define ObjectParams1516_H_
11
12
#include "
ballData.h
"
13
14
class
ObjectParams1516
:
public
ObjectParams
15
{
16
public
:
17
18
ObjectParams1516
() :
ObjectParams
(),
myInScope
(
true
) {};
19
virtual
~ObjectParams1516
() {};
20
21
// Get a unique ID for this object based on the object handle
22
virtual
const
std::wstring&
id
()
const
;
23
24
// Get the object instance name
25
virtual
const
std::wstring&
name
()
const
;
26
27
// Accessors and mutators
28
const
rti1516::ObjectClassHandle
&
classHandle
()
const
;
29
void
setClassHandle
(
const
rti1516::ObjectClassHandle
& handle);
30
31
const
rti1516::ObjectInstanceHandle&
instanceHandle
()
const
;
32
void
setInstanceHandle
(
const
rti1516::ObjectInstanceHandle& handle);
33
34
const
rti1516::RegionHandle&
regionHandle
()
const
;
35
void
setRegionHandle
(
const
rti1516::RegionHandle& handle);
36
37
bool
isInScope
()
const
;
38
void
setIsInScope
(
bool
inScope);
39
40
void
setInstanceName
(
const
std::wstring& objName);
41
42
protected
:
43
44
rti1516::ObjectClassHandle
myClassHandle
;
45
rti1516::ObjectInstanceHandle
myInstanceHandle
;
46
rti1516::RegionHandle
myRegionHandle
;
47
bool
myInScope
;
48
std::wstring
myInstanceHandleString
;
49
std::wstring
myInstanceName
;
50
};
51
52
inline
const
std::wstring&
ObjectParams1516::id
()
const
53
{
54
return
myInstanceHandleString
;
55
}
56
57
inline
const
std::wstring&
ObjectParams1516::name
()
const
58
{
59
return
myInstanceName
;
60
}
61
62
inline
const
rti1516::ObjectClassHandle
&
ObjectParams1516::classHandle
()
const
63
{
64
return
myClassHandle
;
65
}
66
67
inline
void
ObjectParams1516::setClassHandle
(
const
rti1516::ObjectClassHandle
& handle)
68
{
69
myClassHandle
= handle;
70
}
71
72
inline
const
rti1516::ObjectInstanceHandle&
ObjectParams1516::instanceHandle
()
const
73
{
74
return
myInstanceHandle
;
75
}
76
77
inline
void
ObjectParams1516::setInstanceHandle
(
const
rti1516::ObjectInstanceHandle& handle)
78
{
79
myInstanceHandle
= handle;
80
myInstanceHandleString
=
myInstanceHandle
.toString();
81
}
82
83
inline
const
rti1516::RegionHandle&
ObjectParams1516::regionHandle
()
const
84
{
85
return
myRegionHandle
;
86
}
87
88
inline
void
ObjectParams1516::setRegionHandle
(
const
rti1516::RegionHandle& handle)
89
{
90
myRegionHandle
= handle;
91
}
92
93
inline
bool
ObjectParams1516::isInScope
()
const
94
{
95
return
myInScope
;
96
}
97
98
inline
void
ObjectParams1516::setIsInScope
(
bool
inScope)
99
{
100
myInScope
= inScope;
101
}
102
103
inline
void
ObjectParams1516::setInstanceName
(
const
std::wstring& objName)
104
{
105
myInstanceName
= objName;
106
}
107
108
#endif
Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)