17 #if !defined(OPENNURBS_UUID_INC_)
18 #define OPENNURBS_UUID_INC_
21 #if defined(UUID_DEFINED)
23 #elif defined(GUID_DEFINED)
27 #define ON_UUID_DECLARED_AS_CLASS
37 unsigned char Data4[8];
49 extern ON_EXTERN_DECL
const ON_UUID ON_nil_uuid;
53 extern ON_EXTERN_DECL
const ON_UUID ON_max_uuid;
63 extern ON_EXTERN_DECL
const ON_UUID ON_rhino2_id;
64 extern ON_EXTERN_DECL
const ON_UUID ON_rhino3_id;
65 extern ON_EXTERN_DECL
const ON_UUID ON_rhino4_id;
66 extern ON_EXTERN_DECL
const ON_UUID ON_rhino5_id;
67 extern ON_EXTERN_DECL
const ON_UUID ON_rhino_id;
71 extern ON_EXTERN_DECL
const ON_UUID ON_v2_userdata_id;
72 extern ON_EXTERN_DECL
const ON_UUID ON_v3_userdata_id;
73 extern ON_EXTERN_DECL
const ON_UUID ON_v4_userdata_id;
87 extern ON_EXTERN_DECL
const ON_UUID ON_opennurbs4_id;
88 extern ON_EXTERN_DECL
const ON_UUID ON_opennurbs5_id;
89 extern ON_EXTERN_DECL
const ON_UUID ON_opennurbs_id;
93 #if defined(ON_CPLUSPLUS)
106 bool ON_CreateUuid(
ON_UUID& uuid );
114 class ON_CLASS ON_UuidIndex
123 int CompareIdAndIndex(
const ON_UuidIndex* a,
const ON_UuidIndex* b );
129 int CompareIndexAndId(
const ON_UuidIndex* a,
const ON_UuidIndex* b );
135 int CompareId(
const ON_UuidIndex* a,
const ON_UuidIndex* b );
141 int CompareIndex(
const ON_UuidIndex* a,
const ON_UuidIndex* b );
210 bool ON_UuidIsNotNil(
229 ON_UUID ON_UuidFromString(
const char* s );
246 ON_UUID ON_UuidFromString(
const wchar_t* s );
261 char* ON_UuidToString(
const ON_UUID& uuid,
char* s );
277 wchar_t* ON_UuidToString(
const ON_UUID& uuid,
wchar_t* s );
bool operator==(const ON_UUID &other) const
bool operator!=(const ON_UUID &other) const