OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
uuid.hpp File Reference

Provides functions for generating and validating UUIDs (Universally Unique Identifier). More...

Namespaces

namespace  oxy
 This root namespace contains the common types and operations for the OXY-API library.

Functions

auto oxy::is_uuid (std::string const &id)
 Checks whether a string is a valid UUID.
std::string oxy::make_nil_uuid ()
 Creates a nil (all-zeros) UUID and returns it as a string.
std::string oxy::make_uuid ()
 Generates a random UUID and returns it as a string.

Detailed Description

Provides functions for generating and validating UUIDs (Universally Unique Identifier).

This header defines functions for generating random UUIDs, creating nil UUIDs, and validating whether a given string is a valid UUID. It utilizes the Boost UUID library for generating and manipulating UUIDs. The functions return UUIDs as strings and support both dashed and non-dashed formats. The implementation ensures that UUIDs conform to the standard format and can be used for unique identification purposes in various applications.

@license MPL-2.0