SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches

A GUID is a 128-bit value that represents something that is uniquely identifiable by this value: "globally unique.". More...

Classes

struct  SDL::GUID
 An GUID is a 128-bit identifier for an input device that identifies that device across runs of SDL programs on the same platform. More...

Typedefs

using SDL::GUIDRaw = SDL_GUID
 Alias to raw representation for GUID.

Functions

std::string SDL::GUIDToString (const GUIDRaw &guid)
 Get an ASCII string representation for a given GUID.
GUID SDL::StringToGUID (StringParam pchGUID)
 Convert a GUID string into a GUID structure.
std::string SDL::GUID::ToString () const
 Get an ASCII string representation for a given GUID.
 SDL::GUID::GUID (StringParam pchGUID)
 Convert a GUID string into a GUID structure.

Detailed Description

A GUID is a 128-bit value that represents something that is uniquely identifiable by this value: "globally unique.".

SDL provides functions to convert a GUID to/from a string.

Function Documentation

◆ GUID()

SDL::GUID::GUID ( StringParam pchGUID)
inline

Convert a GUID string into a GUID structure.

Performs no error checking. If this function is given a string containing an invalid GUID, the function will silently succeed, but the GUID generated will not be useful.

Parameters
pchGUIDstring containing an ASCII representation of a GUID.
Postcondition
a GUID structure.
Thread safety:
It is safe to call this function from any thread.
Since
This function is available since SDL 3.2.0.
See also
GUID.ToString

◆ GUIDToString()

std::string SDL::GUIDToString ( const GUIDRaw & guid)
inline

Get an ASCII string representation for a given GUID.

Parameters
guidthe GUID you wish to convert to string.
Returns
ASCII string.
Thread safety:
It is safe to call this function from any thread.
Since
This function is available since SDL 3.2.0.
See also
StringToGUID

◆ StringToGUID()

GUID SDL::StringToGUID ( StringParam pchGUID)
inline

Convert a GUID string into a GUID structure.

Performs no error checking. If this function is given a string containing an invalid GUID, the function will silently succeed, but the GUID generated will not be useful.

Parameters
pchGUIDstring containing an ASCII representation of a GUID.
Returns
a GUID structure.
Thread safety:
It is safe to call this function from any thread.
Since
This function is available since SDL 3.2.0.
See also
GUID.ToString

◆ ToString()

std::string SDL::GUID::ToString ( ) const
inline

Get an ASCII string representation for a given GUID.

Returns
ASCII string.
Thread safety:
It is safe to call this function from any thread.
Since
This function is available since SDL 3.2.0.
See also
StringToGUID