Switchboard SDK
Loading...
Searching...
No Matches
switchboard::UUIDGenerator Class Reference

Provides UUID generator functionality using a singleton pattern. More...

#include <UUIDGenerator.hpp>

Public Member Functions

 UUIDGenerator (const UUIDGenerator &)=delete
 
UUIDGeneratoroperator= (const UUIDGenerator &)=delete
 
std::string generateUUIDVersion4 ()
 Generates a random UUID-like string in hexadecimal format.
 

Static Public Member Functions

static UUIDGeneratorgetInstance ()
 Gets the singleton instance of UUIDGenerator.
 

Detailed Description

Provides UUID generator functionality using a singleton pattern.

Member Function Documentation

◆ generateUUIDVersion4()

std::string switchboard::UUIDGenerator::generateUUIDVersion4 ( )

Generates a random UUID-like string in hexadecimal format.

Returns
A string representing the randomly generated UUID.

◆ getInstance()

UUIDGenerator & switchboard::UUIDGenerator::getInstance ( )
static

Gets the singleton instance of UUIDGenerator.

Returns
A reference to the singleton instance.