1#ifndef __JLANG__JUUID__
2#define __JLANG__JUUID__
15namespace JPP {
using namespace JLANG; }
45 uuid_copy(this->
uuid,
object);
67 uuid_generate_random(this->
uuid);
93 return uuid_is_null(this->
uuid) == 0;
102 return uuid_clear(this->
uuid);
114 return uuid_compare(this->
uuid,
object.
uuid) < 0;
128 uuid_parse(buffer.c_str(),
object.uuid);
149 uuid_parse(buffer,
object.
uuid);
167 uuid_unparse_lower(
object.
uuid, buffer);
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Template definition of auxiliary base class for comparison of data structures.
friend std::istream & operator>>(std::istream &in, JUUID &object)
Read object identifier from input.
JUUID(const uuid_t &object)
Copy constructor.
bool is_valid() const
Check validity.
const JUUID & operator()()
Randomizde this UUID.
JUUID()
Default constructor.
static const int BUFFER_SIZE
number of characters for I/O of uuid_t without trailing '\0', see e.g. man uuid_parse
friend std::ostream & operator<<(std::ostream &out, const JUUID &object)
Write object identifier to output.
bool less(const JUUID &object) const
Less than method.
static const JUUID & rndm()
Generate random UUID.
JUUID(const JUUID &object)
Copy constructor.
static JUUID valueOf(const std::string &buffer)
Extract UUID.