CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdGUID Class Reference

#include <OdGUID.h>

Inheritance diagram for OdGUID:
OdDbRevisionGuid OdRevisionGuid

Classes

struct  StringFormat
 

Public Types

typedef OdUInt8 DataType[0x10]
 
typedef OdUInt8 Data4Type[0x8]
 

Public Member Functions

 OdGUID ()
 
 OdGUID (const OdGUID &other)=default
 
 OdGUID (const OdUInt32, const OdUInt16, const OdUInt16, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8, const OdUInt8)
 
 OdGUID (const OdInt32, const OdInt16, const OdInt16, const Data4Type &)
 
 OdGUID (const DataType &data)
 
 OdGUID (const OdString &value)
 
 OdGUID (const OdAnsiString &value)
 
 OdGUID (const char *value)
 
OdGUIDoperator= (const OdGUID &other)=default
 
OdGUIDoperator= (const OdString &other)
 
OdGUIDoperator= (const OdAnsiString &other)
 
OdGUIDoperator= (const char *other)
 
bool operator< (const OdGUID &) const
 
bool operator> (const OdGUID &) const
 
bool operator== (const OdGUID &) const
 
bool operator!= (const OdGUID &) const
 
bool operator<= (const OdGUID &) const
 
bool operator>= (const OdGUID &) const
 
OdString toString (const StringFormat::Enum format=StringFormat::Hyphenses) const
 
const DataTypedata () const
 
void setGUIDdata (const OdUInt32, const OdUInt16, const OdUInt16, const Data4Type &)
 

Static Public Attributes

static FIRSTDLL_EXPORT_STATIC const OdGUID kNull
 

Detailed Description

<group Other_Classes>

Definition at line 33 of file OdGUID.h.

Member Typedef Documentation

◆ Data4Type

typedef OdUInt8 OdGUID::Data4Type[0x8]

Definition at line 36 of file OdGUID.h.

◆ DataType

typedef OdUInt8 OdGUID::DataType[0x10]

Definition at line 35 of file OdGUID.h.

Constructor & Destructor Documentation

◆ OdGUID() [1/8]

OdGUID::OdGUID ( )

◆ OdGUID() [2/8]

OdGUID::OdGUID ( const OdGUID & other)
default

Creates a new instance of a OdGUID object with copied data from other object.

Parameters
other[in] Object to copy from.

◆ OdGUID() [3/8]

OdGUID::OdGUID ( const OdUInt32 ,
const OdUInt16 ,
const OdUInt16 ,
const OdUInt8 ,
const OdUInt8 ,
const OdUInt8 ,
const OdUInt8 ,
const OdUInt8 ,
const OdUInt8 ,
const OdUInt8 ,
const OdUInt8  )

◆ OdGUID() [4/8]

OdGUID::OdGUID ( const OdInt32 ,
const OdInt16 ,
const OdInt16 ,
const Data4Type &  )

◆ OdGUID() [5/8]

OdGUID::OdGUID ( const DataType & data)
explicit

Creates a new instance of an OdGUID object with the copied data from the other data.

Parameters
data[in] GUID data to copy from.

◆ OdGUID() [6/8]

OdGUID::OdGUID ( const OdString & value)
explicit

Creates a new instance of an OdGUID object with the copied data from the string representation of GUID.

Parameters
value[in] GUID string to copy from.

◆ OdGUID() [7/8]

OdGUID::OdGUID ( const OdAnsiString & value)
explicit

Creates a new instance of an OdGUID object with the copied data from the string representation of GUID.

Parameters
value[in] GUID string to copy from.

◆ OdGUID() [8/8]

OdGUID::OdGUID ( const char * value)
explicit

Creates a new instance of an OdGUID object with the copied data from the string representation of GUID.

Parameters
value[in] GUID string to copy from.

Member Function Documentation

◆ data()

const DataType & OdGUID::data ( ) const

◆ operator!=()

bool OdGUID::operator!= ( const OdGUID & ) const

◆ operator<()

bool OdGUID::operator< ( const OdGUID & ) const

◆ operator<=()

bool OdGUID::operator<= ( const OdGUID & ) const

◆ operator=() [1/4]

OdGUID & OdGUID::operator= ( const char * other)

Assignment operator.

Parameters
other[in] String representation of the GUID to be assigned.

◆ operator=() [2/4]

OdGUID & OdGUID::operator= ( const OdAnsiString & other)

Assignment operator.

Parameters
other[in] String representation of the GUID to be assigned.

◆ operator=() [3/4]

OdGUID & OdGUID::operator= ( const OdGUID & other)
default

Assignment operator.

Parameters
other[in] Other GUID object to be assigned.

◆ operator=() [4/4]

OdGUID & OdGUID::operator= ( const OdString & other)

Assignment operator.

Parameters
other[in] String representation of the GUID to be assigned.

◆ operator==()

bool OdGUID::operator== ( const OdGUID & ) const

◆ operator>()

bool OdGUID::operator> ( const OdGUID & ) const

◆ operator>=()

bool OdGUID::operator>= ( const OdGUID & ) const

◆ setGUIDdata()

void OdGUID::setGUIDdata ( const OdUInt32 ,
const OdUInt16 ,
const OdUInt16 ,
const Data4Type &  )

Sets the GUID data.

◆ toString()

OdString OdGUID::toString ( const StringFormat::Enum format = StringFormat::Hyphenses) const

Returns string representation for this OdGUID.

Parameters
format[in] A single format specifier that indicates how to format the value of this OdGUID. Default value is OdGUID::StringFormat::Hyphenses.
Remarks
The following table shows the accepted format specifiers for the format parameter. "0" represents a digit; hyphens ("-"), braces ("{", "}"), and parentheses ("(", ")") appear as shown.

OdGUID::StringFormat::Digits: 00000000000000000000000000000000 OdGUID::StringFormat::Hyphenses: 00000000-0000-0000-0000-000000000000 OdGUID::StringFormat::Braces: {00000000-0000-0000-0000-000000000000} OdGUID::StringFormat::Parentheses: (00000000-0000-0000-0000-000000000000) OdGUID::StringFormat::Extended: {0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} OdGUID::StringFormat::Base64String: Encoded of the base 64 characters compressed string. Contains 22 characters + 1 for the terminating 0

Member Data Documentation

◆ kNull

FIRSTDLL_EXPORT_STATIC const OdGUID OdGUID::kNull
static

Definition at line 48 of file OdGUID.h.


The documentation for this class was generated from the following file: