JustDoIt0910 / uuid

simple UUID utillity under linux environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uuid

This is a simple UUID utillity based on libuuid, use -luuid to link the libuuid library.

Usage:

#include <iostream>
#include "uuid.hpp"
#include <cassert>

int main() {
    UUID uuid;

    assert(uuid.is_null() == true);

    uuid = UUID::generate();
    std::cout << uuid << std::endl;

    uuid.clear();
    assert(uuid.is_null() == true);

    return 0;
}

About

simple UUID utillity under linux environment


Languages

Language:C++ 95.7%Language:CMake 4.3%