LibreOffice Module tools (master) 1
Public Types | Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
tools::Guid Class Reference

#include <Guid.hxx>

Public Types

enum  GenerateTag { Generate = 0 }
 GenerateTag is used as a flag for generating the GUID. More...
 

Public Member Functions

 Guid (enum GenerateTag)
 Constructor which generates the GUID. More...
 
 Guid ()
 Default constructor which initializes the values to 0 (empty GUID) More...
 
 Guid (std::string_view rString)
 parse the GUID from the string More...
 
 Guid (const sal_uInt8 aGuidArray[16])
 set the GUID from an array More...
 
 Guid (Guid &&)=delete
 
 Guid (Guid const &rOther)
 
void operator= (Guid const &rOther)
 
bool isEmpty ()
 
GuidArrayType::iterator begin ()
 
GuidArrayType::iterator end ()
 
GuidArrayType::const_iterator cbegin () const
 
GuidArrayType::const_iterator cend () const
 
OString getString () const
 
OUString getOUString ()
 
bool operator== (Guid const &rCompare) const
 
bool operator!= (Guid const &rCompare) const
 

Private Types

typedef std::array< sal_uInt8, 16 > GuidArrayType
 

Private Member Functions

void parse (std::string_view rString)
 

Static Private Member Functions

static sal_uInt8 gethex (char nChar)
 
static sal_uInt8 covertHexChar (char high, char low)
 

Private Attributes

GuidArrayType maGuidArray
 

Detailed Description

Definition at line 22 of file Guid.hxx.

Member Typedef Documentation

◆ GuidArrayType

typedef std::array<sal_uInt8, 16> tools::Guid::GuidArrayType
private

Definition at line 25 of file Guid.hxx.

Member Enumeration Documentation

◆ GenerateTag

GenerateTag is used as a flag for generating the GUID.

Enumerator
Generate 

Definition at line 95 of file Guid.hxx.

Constructor & Destructor Documentation

◆ Guid() [1/6]

tools::Guid::Guid ( enum  GenerateTag)
inline

Constructor which generates the GUID.

Definition at line 101 of file Guid.hxx.

References maGuidArray.

◆ Guid() [2/6]

tools::Guid::Guid ( )
inline

Default constructor which initializes the values to 0 (empty GUID)

Definition at line 104 of file Guid.hxx.

References maGuidArray.

◆ Guid() [3/6]

tools::Guid::Guid ( std::string_view  rString)
inline

parse the GUID from the string

Definition at line 107 of file Guid.hxx.

References maGuidArray, and parse().

◆ Guid() [4/6]

tools::Guid::Guid ( const sal_uInt8  aGuidArray[16])
inline

set the GUID from an array

Definition at line 114 of file Guid.hxx.

References maGuidArray.

◆ Guid() [5/6]

tools::Guid::Guid ( Guid &&  )
delete

◆ Guid() [6/6]

tools::Guid::Guid ( Guid const &  rOther)
inline

Definition at line 121 of file Guid.hxx.

Member Function Documentation

◆ begin()

GuidArrayType::iterator tools::Guid::begin ( )
inline

Definition at line 127 of file Guid.hxx.

References maGuidArray.

Referenced by operator=().

◆ cbegin()

GuidArrayType::const_iterator tools::Guid::cbegin ( ) const
inline

Definition at line 129 of file Guid.hxx.

References maGuidArray.

Referenced by operator=().

◆ cend()

GuidArrayType::const_iterator tools::Guid::cend ( ) const
inline

Definition at line 130 of file Guid.hxx.

References maGuidArray.

Referenced by operator=().

◆ covertHexChar()

static sal_uInt8 tools::Guid::covertHexChar ( char  high,
char  low 
)
inlinestaticprivate

Definition at line 41 of file Guid.hxx.

References gethex().

Referenced by parse().

◆ end()

GuidArrayType::iterator tools::Guid::end ( )
inline

Definition at line 128 of file Guid.hxx.

References maGuidArray.

◆ gethex()

static sal_uInt8 tools::Guid::gethex ( char  nChar)
inlinestaticprivate

Definition at line 29 of file Guid.hxx.

Referenced by covertHexChar().

◆ getOUString()

OUString tools::Guid::getOUString ( )
inline

Definition at line 145 of file Guid.hxx.

References getString().

◆ getString()

OString tools::Guid::getString ( ) const
inline

Definition at line 132 of file Guid.hxx.

References maGuidArray.

Referenced by getOUString().

◆ isEmpty()

bool tools::Guid::isEmpty ( )
inline

Definition at line 125 of file Guid.hxx.

References maGuidArray.

◆ operator!=()

bool tools::Guid::operator!= ( Guid const &  rCompare) const
inline

Definition at line 152 of file Guid.hxx.

◆ operator=()

void tools::Guid::operator= ( Guid const &  rOther)
inline

Definition at line 123 of file Guid.hxx.

References begin(), cbegin(), and cend().

◆ operator==()

bool tools::Guid::operator== ( Guid const &  rCompare) const
inline

Definition at line 147 of file Guid.hxx.

References maGuidArray.

◆ parse()

void tools::Guid::parse ( std::string_view  rString)
inlineprivate

Definition at line 46 of file Guid.hxx.

References covertHexChar(), maGuidArray, and x.

Referenced by Guid().

Member Data Documentation

◆ maGuidArray

GuidArrayType tools::Guid::maGuidArray
private

Definition at line 27 of file Guid.hxx.

Referenced by begin(), cbegin(), cend(), end(), getString(), Guid(), isEmpty(), operator==(), and parse().


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