xapian-core
1.4.27
|
#include <uuids.h>
Public Member Functions | |
Uuid () | |
void | generate () |
void | parse (const char *in) |
void | parse (const std::string &in) |
void | clear () |
bool | is_null () const |
std::string | to_string () const |
const char * | data () const |
void | assign (const char *p) |
Static Public Attributes | |
static constexpr unsigned | BINARY_SIZE = 16 |
The size of a UUID in bytes. More... | |
static constexpr unsigned | STRING_SIZE = 36 |
The size of a UUID string in bytes (not including trailing '\0'). More... | |
Private Attributes | |
unsigned char | uuid_data [BINARY_SIZE] |
The UUID data. More... | |
|
inline |
Definition at line 36 of file uuids.h.
References generate(), and parse().
|
inline |
|
inline |
|
inline |
Definition at line 60 of file uuids.h.
References uuid_data.
Referenced by ChertVersion::get_uuid(), GlassVersion::get_uuid(), test_uuid1(), and GlassVersion::write().
void Uuid::generate | ( | ) |
Definition at line 63 of file uuids.cc.
References close(), Xapian::InMemory::open(), and rare.
Referenced by GlassVersion::create(), test_uuid1(), and Uuid().
|
inline |
Definition at line 50 of file uuids.h.
References to_string(), and uuid_data.
Referenced by test_uuid1().
void Uuid::parse | ( | const char * | in | ) |
Definition at line 111 of file uuids.cc.
References hex_decode(), and UUID_GAP_MASK.
Referenced by test_uuid1(), and Uuid().
|
inline |
string Uuid::to_string | ( | ) | const |
Definition at line 120 of file uuids.cc.
References UUID_GAP_MASK.
Referenced by ChertVersion::get_uuid_string(), GlassVersion::get_uuid_string(), is_null(), and test_uuid1().
|
static |
The size of a UUID in bytes.
Definition at line 31 of file uuids.h.
Referenced by GlassVersion::read(), test_uuid1(), and GlassVersion::write().
|
static |
|
private |