CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGUID.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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-2022 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];
37 struct StringFormat {
38 enum Enum {
43 Extended
44 };
45 };
46
48
50
56 OdGUID(const OdGUID& other);
57 OdGUID(const OdUInt32, const OdUInt16, const OdUInt16, const OdUInt8,
58 const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8,
59 const OdUInt8, const OdUInt8, const OdUInt8);
60 OdGUID(const OdInt32, const OdInt16, const OdInt16, const Data4Type&);
66 explicit OdGUID(const DataType& data);
72 explicit OdGUID(const OdString& value);
78 explicit OdGUID(const OdAnsiString& value);
84 explicit OdGUID(const char* value);
85
91 OdGUID& operator=(const OdGUID& other);
97 OdGUID& operator=(const OdString& other);
103 OdGUID& operator=(const OdAnsiString& other);
109 OdGUID& operator=(const char* other);
110
111 bool operator<(const OdGUID&) const;
112 bool operator>(const OdGUID&) const;
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
135 const StringFormat::Enum format = StringFormat::Hyphenses) const;
136
137 const DataType& data() const;
141 void setGUIDdata(const OdUInt32, const OdUInt16, const OdUInt16, const Data4Type&);
142
143private:
144 void init(const DataType&);
145 void init(const char*);
146 void init(
147 const OdUInt32 p0, const OdUInt16 p1, const OdUInt16 p2, const OdUInt8 p3,
148 const OdUInt8 p4, const OdUInt8 p5, const OdUInt8 p6, const OdUInt8 p7,
149 const OdUInt8 p8, const OdUInt8 p9, const OdUInt8 p10);
150
151 OdUInt8 m_data[0x10];
152};
153
154#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
Definition: OdGUID.h:33
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
bool operator>=(const OdGUID &) const
bool operator<(const OdGUID &) const
OdGUID(const OdGUID &other)
OdGUID & operator=(const OdAnsiString &other)
bool operator==(const OdGUID &) const
OdGUID & operator=(const OdGUID &other)
void setGUIDdata(const OdUInt32, const OdUInt16, const OdUInt16, const Data4Type &)
bool operator<=(const OdGUID &) const
OdGUID(const OdAnsiString &value)
static FIRSTDLL_EXPORT_STATIC const OdGUID kNull
Definition: OdGUID.h:47
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 GLenum GLsizei GLsizei GLint GLsizei const void * data
Definition: gles2_ext.h:110
GLint GLint GLint GLsizei GLsizei GLenum format
Definition: gles2_ext.h:111
GLsizei const GLfloat * value
Definition: gles2_ext.h:302