38#include "blocxx/BLOCXX_config.h"
47#if !defined(BLOCXX_WIN32)
84static const unsigned __int64 epoch = 116444736000000000L;
113 (
static_cast<unsigned long long>(
tp.tv_sec) * 10000000) +
115 ((
static_cast<unsigned long long>(0x01B21DD2)) << 32) +
173 return c -
'A' + 0xA;
188 unsigned char t =
c >> 4;
189 return t >= 10 ?
t - 10 +
'a' :
t +
'0';
194 unsigned char t =
c & 0xF;
195 return t >= 10 ?
t - 10 +
'a' :
t +
'0';
250 const char* s =
uuidStr.c_str();
251 if (
uuidStr.length() != 36 || s[8] !=
'-' || s[13] !=
'-' || s[18] !=
'-' || s[23] !=
'-')
307 return memcmp(
x.m_uuid,
y.m_uuid,
sizeof(
x.m_uuid)) == 0;
312 return memcmp(
x.m_uuid,
y.m_uuid,
sizeof(
x.m_uuid)) < 0;
#define BLOCXX_DEFINE_EXCEPTION_WITH_ID(NAME)
Define a new exception class named <NAME>Exception that derives from Exception.
#define BLOCXX_THROW(exType, msg)
Throw an exception using FILE and LINE.
Note that descriptions of what exceptions may be thrown assumes that object is used correctly,...
This String class is an abstract data type that represents as NULL terminated string of characters.
UUIDs (Universally Unique IDentifiers), also known as GUIDs (Globally Unique IDentifiers),...
String toString() const
Get the string representation of this UUID.
friend BLOCXX_COMMON_API bool operator==(const UUID &x, const UUID &y)
bool operator<(const Array< T > &x, const Array< T > &y)
bool operator==(const Array< T > &x, const Array< T > &y)
bool operator!=(const Array< T > &x, const Array< T > &y)
Determine two Arrays are not equal.