VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
objectId.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2013 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vl/rtiNamespace.h
>
13
#include <
vlpi/netStructs.h
>
14
15
16
#if DtDIS
17
19
#include <
vl/hostStructs.h
>
20
typedef
DtEntityIdentifier
DtObjectId
;
21
typedef
DtNetEntityIdentifier
DtNetObjectId
;
22
23
#elif DtHLA
24
25
typedef
DtNetU32
DtNetObjectId
;
26
27
38
class
DT_DLL_VL
DtObjectId
39
{
40
public
:
41
45
DtObjectId
();
46
47
#if DtHLA_1516
48
DtObjectId
(RTI::ObjectInstanceHandle
id
);
49
#else
50
DtObjectId
(RTI::ObjectHandle
id
);
51
54
DtObjectId
(
const
char
* str);
55
57
DtObjectId
(
const
DtNetObjectId
&netId);
58
59
#endif
60
61
DtObjectId
(
const
DtObjectId
& orig);
62
DtObjectId
& operator=(
const
DtObjectId
& orig);
63
65
int
operator==
(
const
DtObjectId
& orig)
const
;
66
int
operator!=
(
const
DtObjectId
& orig)
const
;
67
bool
operator<
(
const
DtObjectId
& orig)
const
;
68
69
#if DtHLA_1516
70
operator
RTI::ObjectInstanceHandle()
const
;
71
#else
72
operator
RTI::ObjectHandle()
const
;
73
#endif
74
77
virtual
void
makePlaceholder();
78
80
virtual
bool
valid()
const
;
81
85
virtual
int
invalidId()
const
;
86
87
const
char
*string()
const
;
88
89
static
const
DtObjectId
& nullId();
90
static
const
DtObjectId
& defaultId();
91
92
protected
:
93
94
#if DtHLA_1516
95
RTI::ObjectInstanceHandle myId;
96
#else
97
RTI::ObjectHandle myId;
98
#endif
99
int
myValidityFlag;
100
101
protected
:
102
103
static
int
nextPlaceholderNumber;
104
105
private
:
106
108
mutable
DtString
myMutableStringRep;
109
110
};
111
112
#endif
Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)