CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
IfcGUID.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 _OD_IFC_GUID_H_
25#define _OD_IFC_GUID_H_
26
27#include "OdaCommon.h"
28#include "OdAnsiString.h"
29#include "IfcBuildOptions.h"
30#include "OdGUID.h"
31
36{
37public:
38
43
48 OdIfcGUID(const OdGUID &other);
49
55 OdIfcGUID& operator= (const OdAnsiString &s);
56
62 OdIfcGUID& operator= (const OdGUID &other);
63
69 bool operator== (const OdIfcGUID &other) const
70 {
71 return strncmp(m_val, other.m_val, 22) == 0;
72 };
73
79 bool operator!= (const OdIfcGUID &other) const
80 {
81 return !(this->operator == (other));
82 };
83
93 bool operator< (const OdIfcGUID &other) const
94 {
95 return strncmp(m_val, other.m_val, 22) < 0;
96 };
97
102 operator const char* () const;
103
108 operator char* ();
109
114 const char * c_str() const { return m_val; };
115
120 bool isValid() const;
121
127
128//DOM-IGNORE-BEGIN
129private:
130 char m_val[23];
131//DOM-IGNORE-END
132};
133
134#endif // _OD_IFC_GUID_H_
bool operator!=(T left, const OdGiVariant::EnumType right)
Definition: GiVariant.h:403
bool operator==(T left, const OdGiVariant::EnumType right)
Definition: GiVariant.h:397
#define IFCCORE_EXPORT
bool operator<(const OdString &s1, const OdString &s2)
Definition: OdString.h:1309
Definition: OdGUID.h:33
const char * c_str() const
Definition: IfcGUID.h:114
static OdIfcGUID generate()
bool isValid() const
OdIfcGUID(const OdGUID &other)