VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
objectId.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 1992-2025 MAK Technologies, Inc
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>
22 
23 #elif DtHLA
24 
26 
27 
39 {
40 public:
41 
45  DtObjectId();
46 
47 #if DtHLA_1516
48  DtObjectId(RTI::ObjectInstanceHandle id);
49 #else
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
100 
101 protected:
102 
104 
105 private:
106 
109 
110 };
111 
112 #endif
const bool operator==(const DtU128 &lhs, const DtU128 &rhs)
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtString myMutableStringRep
This is a cashed value which is computed in string()
Definition: objectId.h:108
Network-order unsigned 32-bit quantity.
Definition: vlNetTypes.h:99
DtNetU32 DtNetObjectId
Definition: objectId.h:25
int myValidityFlag
Definition: objectId.h:99
RTI::ObjectInstanceHandle myId
Definition: objectId.h:95
static int nextPlaceholderNumber
Definition: objectId.h:103
ObjectInstanceHandle ObjectHandle
Definition: rtiCompatibility.h:275
Definition: netStructs.h:116
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
DtObjectId instances are used to represent RTI::ObjectInstances in VR-Link.
Definition: objectId.h:38
bool operator<(const DtTimeReflectedObjectIdKey &left, const DtTimeReflectedObjectIdKey &right)
Compare 2 time ID keys.
Definition: reflectedObjectListHLA.h:548
const bool operator!=(const DtU128 &lhs, const DtU128 &rhs)
Instances of DtString are used to represent strings.
Definition: vlString.h:36

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)