CFx SDK Documentation  2023 SP0
OdGUID.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 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 
27 class OdString;
28 
30 public:
31  typedef OdUInt8 DataType[0x10];
32  typedef OdUInt8 Data4Type[0x8];
33  struct StringFormat {
34  enum Enum {
39  Extended
40  };
41  };
42 
44 
45  OdGUID();
46  OdGUID(const OdUInt32, const OdUInt16, const OdUInt16, const OdUInt8,
47  const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8,
48  const OdUInt8, const OdUInt8, const OdUInt8);
49  OdGUID(const OdInt32, const OdInt16, const OdInt16, const Data4Type&);
50  explicit OdGUID(const DataType&);
51  explicit OdGUID(const OdString&);
52 
54 
55  bool operator<(const OdGUID&) const;
56  bool operator>(const OdGUID&) const;
57  bool operator==(const OdGUID&) const;
58  bool operator!=(const OdGUID&) const;
59  bool operator<=(const OdGUID&) const;
60  bool operator>=(const OdGUID&) const;
61 
79  const StringFormat::Enum format = StringFormat::Hyphenses) const;
80 
81  const DataType& data() const;
82 private:
83  void init(const DataType&);
84  void init(
85  const OdUInt32 p0, const OdUInt16 p1, const OdUInt16 p2, const OdUInt8 p3,
86  const OdUInt8 p4, const OdUInt8 p5, const OdUInt8 p6, const OdUInt8 p7,
87  const OdUInt8 p8, const OdUInt8 p9, const OdUInt8 p10);
88 
89  OdUInt8 m_data[0x10];
90 };
91 
92 #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:29
OdGUID & operator=(const OdGUID &)
bool operator!=(const OdGUID &) const
const DataType & data() const
OdGUID(const OdInt32, const OdInt16, const OdInt16, const Data4Type &)
OdGUID(const OdString &)
OdString toString(const StringFormat::Enum format=StringFormat::Hyphenses) const
bool operator>=(const OdGUID &) const
bool operator<(const OdGUID &) const
bool operator==(const OdGUID &) const
OdGUID(const DataType &)
bool operator<=(const OdGUID &) const
static FIRSTDLL_EXPORT_STATIC const OdGUID kNull
Definition: OdGUID.h:43
OdGUID(const OdUInt32, const OdUInt16, const OdUInt16, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8)
bool operator>(const OdGUID &) const
GLint GLint GLint GLsizei GLsizei GLenum format
Definition: gles2_ext.h:111