|
xapian-core
1.4.30
|
#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 64 of file uuids.h.
References BINARY_SIZE, and uuid_data.
Referenced by GlassVersion::read().
|
inline |
Definition at line 45 of file uuids.h.
References BINARY_SIZE, and uuid_data.
Referenced by test_uuid1().
|
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(), and test_uuid1().
|
inline |
| 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().
|
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(), and test_uuid1().
|
staticconstexpr |
The size of a UUID in bytes.
Definition at line 31 of file uuids.h.
Referenced by assign(), clear(), GlassVersion::read(), test_uuid1(), and GlassVersion::write().
|
staticconstexpr |
|
private |