24 #include <RTI/RTI1516.h>
29 (std::ostream& os,
const rti1516_2025::ObjectInstanceHandle& handle);
33 (std::ostream& os,
const rti1516_2025::ObjectClassHandle& handle);
37 (std::ostream& os,
const rti1516_2025::InteractionClassHandle& handle);
41 (std::ostream& os,
const rti1516_2025::AttributeHandle& handle);
45 (std::ostream& os,
const rti1516_2025::ParameterHandle& handle);
49 (std::ostream& os,
const rti1516_2025::Exception& exception);
53 namespace rti1516_2025 {
65 template <
typename HandleType,
typename MapType>
66 class CompatibleHandleValuePairSet
70 CompatibleHandleValuePairSet(MapType *AHVM);
71 CompatibleHandleValuePairSet(
const MapType *AHVM);
72 ~CompatibleHandleValuePairSet();
74 unsigned long size()
const ;
75 HandleType getHandle(
unsigned long i)
const ;
76 unsigned long getValueLength(
unsigned long i)
const ;
77 void getValue(
unsigned long i,
char* buffer,
unsigned long &valueLength)
const ;
78 char *getValuePointer(
unsigned long i,
unsigned long &valueLength)
const ;
79 void add(HandleType h,
const char* buffer,
unsigned long valueLength);
80 void remove(HandleType h);
85 void updateCachedIterator(
unsigned long i)
const;
88 mutable int myLastPlace;
89 mutable typename MapType::iterator myLastMapPosition;
95 typedef CompatibleHandleValuePairSet<AttributeHandle, AttributeHandleValueMap>
98 typedef CompatibleHandleValuePairSet<ParameterHandle, ParameterHandleValueMap>
103 typedef unsigned long ULong;
107 #elif DtHLA_1516_EVOLVED
109 #include <RTI/RTI1516.h>
114 (std::ostream& os,
const rti1516e::ObjectInstanceHandle& handle);
118 (std::ostream& os,
const rti1516e::ObjectClassHandle& handle);
122 (std::ostream& os,
const rti1516e::InteractionClassHandle& handle);
126 (std::ostream& os,
const rti1516e::AttributeHandle& handle);
130 (std::ostream& os,
const rti1516e::ParameterHandle& handle);
134 (std::ostream& os,
const rti1516e::Exception& exception);
150 template <
typename HandleType,
typename MapType>
151 class CompatibleHandleValuePairSet
155 CompatibleHandleValuePairSet(MapType* AHVM);
156 CompatibleHandleValuePairSet(
const MapType* AHVM);
157 ~CompatibleHandleValuePairSet();
159 unsigned long size()
const;
160 HandleType getHandle(
unsigned long i)
const;
161 unsigned long getValueLength(
unsigned long i)
const;
162 void getValue(
unsigned long i,
char* buffer,
unsigned long& valueLength)
const;
163 char* getValuePointer(
unsigned long i,
unsigned long& valueLength)
const;
164 void add(HandleType h,
const char* buffer,
unsigned long valueLength);
165 void remove(HandleType h);
170 void updateCachedIterator(
unsigned long i)
const;
173 mutable int myLastPlace;
174 mutable typename MapType::iterator myLastMapPosition;
180 typedef CompatibleHandleValuePairSet<AttributeHandle, AttributeHandleValueMap>
183 typedef CompatibleHandleValuePairSet<ParameterHandle, ParameterHandleValueMap>
188 typedef unsigned long ULong;
195 #include <RTI/RTI1516.h>
200 (std::ostream& os,
const rti1516::ObjectInstanceHandle& handle);
204 (std::ostream& os,
const rti1516::ObjectClassHandle& handle);
208 (std::ostream& os,
const rti1516::InteractionClassHandle& handle);
212 (std::ostream& os,
const rti1516::AttributeHandle& handle);
216 (std::ostream& os,
const rti1516::ParameterHandle& handle);
220 (std::ostream& os,
const rti1516::Exception& exception);
236 template <
typename HandleType,
typename MapType>
245 inline unsigned long size()
const ;
246 inline HandleType
getHandle(
unsigned long i)
const ;
248 inline void getValue(
unsigned long i,
char* buffer,
unsigned long &valueLength)
const ;
249 inline char *
getValuePointer(
unsigned long i,
unsigned long &valueLength)
const ;
250 inline void add(HandleType h,
const char* buffer,
unsigned long valueLength);
251 inline void remove(HandleType h);
279 #endif //DtHLA_1516_EVOLVED
281 #define INCLUDE_rtiCompataibility_inl_
282 #include "rtiCompatibility.inl"
283 #undef INCLUDE_rtiCompataibility_inl_
289 #if !defined(_WIN32) && !defined(RTI_USES_STD_FSTREAM) && !defined(__darwin__)
unsigned long getValueLength(unsigned long i) const
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
void add(HandleType h, const char *buffer, unsigned long valueLength)
CompatibleHandleValuePairSet(MapType *AHVM)
std::ostream & operator<<(std::ostream &os, const Dt3dChord &chord)
MapType::iterator myLastMapPosition
Definition: rtiCompatibility.h:260
void getValue(unsigned long i, char *buffer, unsigned long &valueLength) const
void updateCachedIterator(unsigned long i) const
int myLastPlace
Definition: rtiCompatibility.h:259
unsigned long size() const
ObjectInstanceHandle ObjectHandle
Definition: rtiCompatibility.h:275
MapType * myMap
Definition: rtiCompatibility.h:258
char * getValuePointer(unsigned long i, unsigned long &valueLength) const
CompatibleHandleValuePairSet< AttributeHandle, AttributeHandleValueMap > AttributeHandleValuePairSet
Define the two classes with different names, but the same functionality.
Definition: rtiCompatibility.h:267
Used to provide backwards compatibility for VR-Link Encoders and Decoders who use either AttributeHan...
Definition: rtiCompatibility.h:237
CompatibleHandleValuePairSet< ParameterHandle, ParameterHandleValueMap > ParameterHandleValuePairSet
Definition: rtiCompatibility.h:270
unsigned long ULong
These typedefs are provided for source compatibility.
Definition: rtiCompatibility.h:274
HandleType getHandle(unsigned long i) const
This file contains typedefs for machine dependant types.
~CompatibleHandleValuePairSet()