Qore UUID Module  1.2
 All Classes Namespaces Functions Variables Groups
QC_UUID.dox.h
1 
2 namespace Qore::UUID {
4 
5 class UUID {
6 
7 public:
9 
10 nothing clear();
11 
12 public:
14 
26 int compare(UUID other);
27 
28 public:
30 
46  constructor(int flags = Qore::UUID::None);
47 
48 public:
50 
60  constructor(string uuid_str);
61 
62 public:
64 
69  copy();
70 
71 public:
73 
85 nothing generate(int flags = Qore::UUID::None);
86 
87 public:
89 
99 bool isNull();
100 
101 public:
103 
112 nothing set(string uuid_str);
113 
114 public:
116 
128 string toString(int flag = Qore::UUID::LowerCase);
129 
130 public:
132 
140 static string get(int str_flag = Qore::UUID::LowerCase, int gen_flags = Qore::UUID::None);
141 };
145 
147  const Empty = QUF_EMPTY;
149  const HAVE_UNPARSE_CASE = True;
151  const None = QUF_NONE;
153  const Random = QUF_RANDOM;
155  const Time = QUF_TIME;
157 
159 namespace Qore::UUID;
161 
163  const LowerCase = QUF_LOWER_CASE;
165  const UpperCase = QUF_UPPER_CASE;
167 };