3#ifndef TRAM_SDK_FRAMEWORK_UID_H
4#define TRAM_SDK_FRAMEWORK_UID_H
12 UID(
const UID& value) { *
this = value; }
15 UID(
const std::string& value);
16 UID(
const char* value);
28 return key ==
UID(other).key;
31 explicit operator bool() {
return key; }
33 operator std::string()
const;
34 operator char const*()
const;
UID name_t
Definition: uid.h:43
Interned string type.
Definition: uid.h:10
bool operator==(const UID &other) const
Definition: uid.h:23
static bool no_quote(const char *)
Checks whether the name will need quotes.
Definition: uid.cpp:131
static bool is_empty(const char *)
Checks whether a string consists of only whitespace.
Definition: uid.cpp:144
bool operator==(const char *other) const
Definition: uid.h:27
~UID()
Definition: uid.h:13
UID(const UID &value)
Definition: uid.h:12
static bool is_valid(const UID &)
Checks whether the name is valid.
Definition: uid.cpp:121
uint32_t key
Definition: uid.h:40
UID()
Definition: uid.h:11
UID & operator=(const UID &value)
Definition: uid.h:18