Class uuid
hamigaki::uuid —
Synopsis
Description
uuid
construct/copy/destruct
-
uuid();
Effects:
|
「00000000-0000-0000-0000-000000000000」でuuid を初期化する。 |
-
explicit uuid(const char* s);
Effects:
|
s をパースした結果でuuid を初期化する。 |
-
explicit uuid(const wchar_t* s);
Effects:
|
s をパースした結果でuuid を初期化する。 |
-
uuid(const GUID& id);
Effects:
|
id でuuid を初期化する。 |
Notes:
|
このコンストラクタはWindows環境でのみ提供される。 |
uuid
queries
-
bool is_null() const;
Returns:
|
「00000000-0000-0000-0000-000000000000」ならtrue |
uuid
uuid operations
-
std::string to_string() const;
Returns:
|
UUIDの内容を示す「xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx」形式の文字列 |
-
std::wstring to_wstring() const;
Returns:
|
UUIDの内容を示す「xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx」形式の文字列 |
-
std::string to_guid_string() const;
Returns:
|
UUIDの内容を示す「{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}」形式の文字列 |
-
std::wstring to_guid_wstring() const;
Returns:
|
UUIDの内容を示す「{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}」形式の文字列 |
-
const GUID& copy(GUID& id) const;
Effects:
|
id にUUIDの内容をコピーする。 |
Returns:
|
id
|
Notes:
|
この関数はWindows環境でのみ提供される。 |