Kaim::KyGuid Class Reference

#include <kyguid.h>

Class Description

The KyGuid class represents a globally unique ID.

It is used by the NavData generation framework to uniquely identify each sector treated by the Generator.

+ Examples:

Public Member Functions

 KyGuid ()
 
 KyGuid (const char guidString[])
 
 KyGuid (const KyGuid &rhs)
 
 KyGuid (KyUInt8 values[16])
 
 KyGuid (KyUInt16 values[8])
 
 KyGuid (KyUInt32 values[4])
 
 KyGuid (KyUInt64 values[2])
 
 KyGuid (void *src)
 
void InitFromString (const char guidString[])
 
bool IsValid () const
 
void ToString (char guidString[]) const
 

Static Public Member Functions

static const KyGuidGetDefaultGuid ()
 
static const KyGuidGetInvalidGuid ()
 

Constructor & Destructor Documentation

Kaim::KyGuid::KyGuid ( )

Creates an invalid KyGuid.

Kaim::KyGuid::KyGuid ( const char  guidString[])
explicit

Creates a KyGuid from guidString.

Asserts when guidString is not valid (see IsValidGuidString()).

Parameters
guidStringAn array of 37 characters that will make up the GUID.
Kaim::KyGuid::KyGuid ( const KyGuid rhs)
inline

Creates a new KyGuid copying the specified KyGuid.

Kaim::KyGuid::KyGuid ( KyUInt8  values[16])
explicit

Creates a new KyGuid from the 16 provided KyUInt8 values.

Parameters
valuesAn array of 16 KyUInt8 objects that will make up the GUID.
Kaim::KyGuid::KyGuid ( KyUInt16  values[8])
explicit

Creates a new KyGuid from the 8 provided KyUInt16 values.

Parameters
valuesAn array of 8 KyUInt16 objects that will make up the GUID.
Kaim::KyGuid::KyGuid ( KyUInt32  values[4])
explicit

Creates a new KyGuid from the 4 provided KyUInt32 values.

Parameters
valuesAn array of 4 KyUInt32 objects that will make up the GUID.
Kaim::KyGuid::KyGuid ( KyUInt64  values[2])
explicit

Creates a new KyGuid from the 2 provided KyUInt64 values.

Parameters
valuesAn array of 2 KyUInt64 objects that will make up the GUID.
Kaim::KyGuid::KyGuid ( void *  src)
explicit

Creates a new KyGuid, copying the memory from the src buffer to the newly constructed object.

Member Function Documentation

static const KyGuid& Kaim::KyGuid::GetDefaultGuid ( )
static

Returns the default KyGuid value.

+ Examples:
static const KyGuid& Kaim::KyGuid::GetInvalidGuid ( )
static

Returns the invalid KyGuid value.

void Kaim::KyGuid::InitFromString ( const char  guidString[])

Initializes this GUID using the specified string.

bool Kaim::KyGuid::IsValid ( ) const
inline

Indicates whether the specified KyGuid is valid.

void Kaim::KyGuid::ToString ( char  guidString[]) const

Converts this GUID to a string.


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