![]() |
VR-Link API Documentation for HLA 1.3
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 00006 00009 00010 #ifndef DtObjectIdHashKey_H_ 00011 #define DtObjectIdHashKey_H_ 00012 00013 #if DtHLA 00014 00015 #include <vlutil/vlHashKeys.h> 00016 #include "objectId.h" 00017 00022 class DT_DLL_VL DtObjectIdHashKey : public DtBaseHashKey 00023 { 00024 public: 00025 00027 DtObjectIdHashKey(); 00028 00030 DtObjectIdHashKey(const DtObjectId& id); 00031 00033 virtual ~DtObjectIdHashKey(); 00034 00036 DtObjectIdHashKey(const DtObjectIdHashKey& orig); 00037 00039 DtObjectIdHashKey& operator=(const DtObjectIdHashKey& orig); 00040 00043 virtual bool operator==(const DtBaseHashKey& other) const; 00044 00046 virtual DtBaseHashKey* clone() const; 00047 00049 virtual const DtObjectId& value() const; 00050 00051 protected: 00052 00054 virtual const DtString stringRep() const; 00055 00057 virtual DtU32 computeHashValue(); 00058 00059 protected: 00060 DtObjectId myId; 00061 }; 00062 00063 #else //! DtDIS 00064 00065 #include <vlpi/entIdHashKey.h> 00066 00067 typedef DtEntityIdentifierHashKey DtObjectIdHashKey; 00068 00069 #endif //! DtDIS 00070 00071 #endif //! DtObjectIdHashKey_H_ 00072 00073