MAK RTIspy API Documentation for HLA Evolved
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
examples
hlaBounce
regionParams13.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 DdmRegion13_H_
10
#define DdmRegion13_H_
11
12
#include "
regionData.h
"
13
14
class
DdmRegion13
:
public
DdmRegion
15
{
16
public
:
17
18
DdmRegion13
() :
DdmRegion
() {
myExtentIndexString
=
nextId
(); };
19
20
virtual
~DdmRegion13
() {};
21
22
// Get a unique ID for this object based on the object handle
23
virtual
const
std::wstring&
id
()
const
;
24
25
// Accessors and mutators
26
RTI::ExtentIndex
extentIndex
()
const
;
27
void
setExtentIndex
(
RTI::ExtentIndex
index);
28
29
// RTI::Region* region() const;
30
// void setRegion(RTI::Region* reg);
31
32
protected
:
33
34
static
std::wstring
nextId
();
35
36
/*RTI::Region* myRegion;*/
37
RTI::ExtentIndex
myExtentIndex
;
38
std::wstring
myExtentIndexString
;
39
};
40
41
inline
const
std::wstring&
DdmRegion13::id
()
const
42
{
43
return
myExtentIndexString
;
44
}
45
46
inline
RTI::ExtentIndex
DdmRegion13::extentIndex
()
const
47
{
48
return
myExtentIndex
;
49
}
50
51
inline
void
DdmRegion13::setExtentIndex
(
RTI::ExtentIndex
index)
52
{
53
myExtentIndex
= index;
54
}
55
56
// inline RTI::Region* DdmRegion13::region()
57
// {
58
// return myRegion;
59
// }
60
//
61
// inline void DdmRegion13::setRegion(RTI::Region* reg)
62
// {
63
// myRegion = reg;
64
// }
65
66
inline
std::wstring
DdmRegion13::nextId
()
67
{
68
// In 1.3, what we really want are extent ID's, however, these will change
69
// as we add and remove extents from the region. Instead, let's make up
70
// our own ID here.
71
static
unsigned
idCount = 0;
72
73
std::wstringstream ssId;
74
ssId << ++idCount;
75
return
ssId.str();
76
}
77
78
#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
)