25 #ifndef INTEGRA_GUID_HELPER_H
26 #define INTEGRA_GUID_HELPER_H
53 static size_t guid_to_hash(
const GUID &guid );
59 static string guid_to_string(
const GUID &guid );
66 static CError string_to_guid(
const string &
string,
GUID &output );
73 static bool guids_are_equal(
const GUID &guid1,
const GUID &guid2 );
79 static bool guid_is_null(
const GUID &guid );
88 static unsigned long read_hex_chars(
const string &input,
unsigned int number_of_bytes,
CError &error );
89 static CError read_hex_char(
char input,
unsigned char &output );
106 typedef std::unordered_set<GUID, GuidHash, GuidCompare> guid_set;
109 typedef std::vector<GUID> guid_array;
static const GUID null_guid
Null guid. Assign guids to this value to mark them as null.
Definition: guid_helper.h:84
static bool guids_are_equal(const GUID &guid1, const GUID &guid2)
Compare guids.
Definition: common_typedefs.h:45
Defines a comparison operator so that guids can be keys of standard library maps and sets...
Definition: guid_helper.h:100
Represents an enumeration of error codes.
Definition: error.h:40
static size_t guid_to_hash(const GUID &guid)
Guid hash function.
Common guid routines.
Definition: guid_helper.h:45
Defines a hash operator so that guids can be keys of standard library maps and sets. Internal use only.
Definition: guid_helper.h:94
#defines and typedefs used throughout the application