CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdGUID.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef ODGUID_H_INCLUDED
25#define ODGUID_H_INCLUDED
26
27class OdString;
28class OdAnsiString;
29
34public:
35 typedef OdUInt8 DataType[0x10];
36 typedef OdUInt8 Data4Type[0x8];
47
49
51
57 OdGUID(const OdGUID& other) = default;
58
59 OdGUID(const OdUInt32, const OdUInt16, const OdUInt16, const OdUInt8,
60 const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8,
61 const OdUInt8, const OdUInt8, const OdUInt8);
62 OdGUID(const OdInt32, const OdInt16, const OdInt16, const Data4Type&);
68 explicit OdGUID(const DataType& data);
74 explicit OdGUID(const OdString& value);
80 explicit OdGUID(const OdAnsiString& value);
86 explicit OdGUID(const char* value);
87
93 OdGUID& operator=(const OdGUID& other) = default;
99 OdGUID& operator=(const OdString& other);
105 OdGUID& operator=(const OdAnsiString& other);
111 OdGUID& operator=(const char* other);
112
113 bool operator<(const OdGUID&) const;
114 bool operator>(const OdGUID&) const;
115 bool operator==(const OdGUID&) const;
116 bool operator!=(const OdGUID&) const;
117 bool operator<=(const OdGUID&) const;
118 bool operator>=(const OdGUID&) const;
119
140
141 const DataType& data() const;
145 void setGUIDdata(const OdUInt32, const OdUInt16, const OdUInt16, const Data4Type&);
146
147private:
148 void init(const DataType&);
149 void init(const char*);
150 void init(
151 const OdUInt32 p0, const OdUInt16 p1, const OdUInt16 p2, const OdUInt8 p3,
152 const OdUInt8 p4, const OdUInt8 p5, const OdUInt8 p6, const OdUInt8 p7,
153 const OdUInt8 p8, const OdUInt8 p9, const OdUInt8 p10);
154
155#if defined (__linux__) && defined (__aarch64__)
156 __attribute__ ((aligned (4))) OdUInt8 m_data[0x10];
157#else
158 OdUInt8 m_data[0x10];
159#endif
160};
161
162#endif // ODGUID_H_INCLUDED
unsigned int OdUInt32
short OdInt16
unsigned short OdUInt16
int OdInt32
unsigned char OdUInt8
#define FIRSTDLL_EXPORT
Definition RootExport.h:39
#define FIRSTDLL_EXPORT_STATIC
Definition RootExport.h:40
OdGUID & operator=(const OdGUID &other)=default
OdGUID(const OdString &value)
bool operator!=(const OdGUID &) const
OdGUID(const DataType &data)
OdGUID(const OdInt32, const OdInt16, const OdInt16, const Data4Type &)
OdGUID & operator=(const OdString &other)
OdString toString(const StringFormat::Enum format=StringFormat::Hyphenses) const
OdUInt8 DataType[0x10]
Definition OdGUID.h:35
bool operator>=(const OdGUID &) const
bool operator<(const OdGUID &) const
OdGUID & operator=(const OdAnsiString &other)
bool operator==(const OdGUID &) const
void setGUIDdata(const OdUInt32, const OdUInt16, const OdUInt16, const Data4Type &)
OdUInt8 Data4Type[0x8]
Definition OdGUID.h:36
bool operator<=(const OdGUID &) const
OdGUID(const OdAnsiString &value)
OdGUID(const OdGUID &other)=default
static FIRSTDLL_EXPORT_STATIC const OdGUID kNull
Definition OdGUID.h:48
OdGUID(const OdUInt32, const OdUInt16, const OdUInt16, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8)
const DataType & data() const
OdGUID(const char *value)
OdGUID & operator=(const char *other)
bool operator>(const OdGUID &) const
GLint GLint GLint GLsizei GLsizei GLenum format
Definition gles2_ext.h:111
GLsizei const GLfloat * value
Definition gles2_ext.h:302