gwnavruntime/base/kyguid.h Source File
Go to the documentation of this file.
8 #ifndef Navigation_KyGuid_H
9 #define Navigation_KyGuid_H
36 explicit KyGuid(
const char guidString[]);
58 explicit KyGuid(
void* src);
63 bool operator < (
const KyGuid& rhs)
const {
return memcmp(m_uuid, rhs.m_uuid, sizeof (m_uuid)) < 0; }
64 bool operator <=(
const KyGuid& rhs)
const {
return memcmp(m_uuid, rhs.m_uuid, sizeof (m_uuid)) <= 0; }
65 bool operator > (
const KyGuid& rhs)
const {
return !operator<=(rhs); }
66 bool operator >=(
const KyGuid& rhs)
const {
return !operator<(rhs); }
67 bool operator ==(
const KyGuid& rhs)
const {
return memcmp(m_uuid, rhs.m_uuid, sizeof (m_uuid)) == 0; }
68 bool operator !=(
const KyGuid& rhs)
const {
return !operator==(rhs); }
70 KyGuid& operator = (
const KyGuid& rhs) { memcpy(m_uuid, rhs.m_uuid, sizeof (m_uuid));
return *
this; }
76 void ToString(
char guidString[])
const;
105 template <
class OSTREAM>
106 inline OSTREAM& operator<<(OSTREAM& os,
const KyGuid& guid)
109 guid.ToString(guidString);
bool IsValidGuidString(const char guidStr[])
KyGuid()
Creates an invalid KyGuid.
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
The NavData class is the object containing navigation data that will be added to one Database...
Definition: navdata.h:44
unsigned __int64 KyUInt64
Type used internally to represent an unsigned 64-bit integer.
Definition: types.h:38
bool IsValid() const
Indicates whether the specified KyGuid is valid.
Definition: kyguid.h:75
static const KyGuid & GetInvalidGuid()
Returns the invalid KyGuid value.
unsigned char KyUInt8
Type used internally to represent an unsigned 8-bit integer.
Definition: types.h:41
Definition: gamekitcrowddispersion.h:20
The KyGuid class represents a globally unique ID.
Definition: kyguid.h:22
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
void InitFromString(const char guidString[])
Initializes this GUID using the specified string.
unsigned short KyUInt16
Type used internally to represent an unsigned 16-bit integer.
Definition: types.h:40
void ToString(char guidString[]) const
Converts this GUID to a string.
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
static const KyGuid & GetDefaultGuid()
Returns the default KyGuid value.