VR-Link API Documentation for HLA Evolved
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vlpi
entityIdentifier.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
#ifndef entityIdentifier_H_
7
#define entityIdentifier_H_
8
9
#include <
vlutil/vlMachineTypes.h
>
10
#include "
NetStructs.h
"
11
#include "
disEnums.h
"
12
#include "
simulationAddress.h
"
13
#include <string>
14
21
24
const
DtU16
DtDeferedEntityId
= ((1<<16)-1);
25
26
const
DtU16
DtDeferredEntityId
= ((1<<16)-1);
27
35
class
DT_DLL_VLPROTIND
DtEntityIdentifier
36
{
37
public
:
39
DtEntityIdentifier
(
const
char
* str);
40
42
DtEntityIdentifier
(
int
site,
int
host,
DtU16
entityNum);
43
45
DtEntityIdentifier
(
const
DtSimulationAddress
& simulationAddress,
46
DtU16
entityNum);
47
49
DtEntityIdentifier
(
const
DtEntityIdentifier
& orig);
50
52
const
DtEntityIdentifier
& operator=(
const
DtEntityIdentifier
& orig);
53
55
DtEntityIdentifier
(
const
DtNetEntityIdentifier
& netId);
56
58
DtEntityIdentifier
();
59
61
void
init(
int
site,
int
host,
DtU16
entityNum);
62
63
67
inline
int
operator==
(
const
DtEntityIdentifier
&other)
const
;
68
inline
int
operator!=
(
const
DtEntityIdentifier
&other)
const
;
69
inline
operator
DtNetEntityIdentifier
()
const
;
70
84
bool
operator<
(
const
DtEntityIdentifier
&rightOperand )
const
;
85
87
inline
void
setFromNet(
const
DtNetEntityIdentifier
&netId);
88
90
inline
void
setSite(
int
site);
91
93
inline
int
site()
const
;
94
96
inline
void
setHost(
int
host);
97
99
inline
int
host()
const
;
100
102
inline
void
setEntityNum(
DtU16
entityNum);
103
105
inline
DtU16
entityNum()
const
;
106
108
inline
void
setSimulationAddress(
const
DtSimulationAddress
& simulationAddress);
109
111
inline
const
DtSimulationAddress
& simulationAddress()
const
;
112
114
bool
sameHost(
const
DtEntityIdentifier
&other)
const
;
115
117
bool
sameEntity(
const
DtEntityIdentifier
&other)
const
;
118
120
bool
matchPattern(
const
DtEntityIdentifier
&pat)
const
;
121
122
124
const
char
*string()
const
;
125
126
public
:
127
129
static
const
DtEntityIdentifier
& nullId();
130
132
static
const
DtEntityIdentifier
& defaultId();
133
134
public
:
135
138
DtSimulationAddress
DtSimulator
;
139
142
DtU16
DtEntity
;
143
144
protected
:
150
mutable
std::string
myMutableStringRep
;
151
};
152
153
DT_DLL_VLPROTIND
std::ostream&
operator<<
(std::ostream& stream,
const
DtEntityIdentifier
&
object
);
154
155
#define entityIdentifier_inl
156
#include "entityIdentifier.inl"
157
#undef entityIdentifier_inl
158
159
#endif
160
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
)