SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Classes | Typedefs | Functions

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

Collaboration diagram for GUIDs:

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. More...
 
GUID SDL::StringToGUID (StringParam pchGUID)
 Convert a GUID string into a GUID structure. More...
 
std::string SDL::GUID::ToString () const
 Get an ASCII string representation for a given GUID. More...
 

Detailed Description

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

Function Documentation

◆ GUIDToString()

std::string SDL::GUIDToString ( const GUIDRaw guid)
inline
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
GUID.GUID

◆ StringToGUID()

GUID SDL::StringToGUID ( StringParam  pchGUID)
inline

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
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
GUID.GUID