diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-02-11 22:51:25 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-02-11 22:51:25 +0000 |
commit | 3f958097632256329cdbaf2219e2ba15325e9c52 (patch) | |
tree | e7616f7db3709d68ae51d6da0ef8ce44600bd33f /src/uuid.h | |
parent | f4b191f0ea396b58465bfba40749977780a3af58 (diff) | |
download | libbu++-3f958097632256329cdbaf2219e2ba15325e9c52.tar.gz libbu++-3f958097632256329cdbaf2219e2ba15325e9c52.tar.bz2 libbu++-3f958097632256329cdbaf2219e2ba15325e9c52.tar.xz libbu++-3f958097632256329cdbaf2219e2ba15325e9c52.zip |
Hey, formatter, awesome, and look at that...I'm adding uuid support.
Diffstat (limited to '')
-rw-r--r-- | src/uuid.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/uuid.h b/src/uuid.h new file mode 100644 index 0000000..2bb1404 --- /dev/null +++ b/src/uuid.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #ifndef BU_UUID_H | ||
2 | #define BU_UUID_H | ||
3 | |||
4 | namespace Bu | ||
5 | { | ||
6 | class Uuid | ||
7 | { | ||
8 | public: | ||
9 | Uuid(); | ||
10 | virtual ~Uuid(); | ||
11 | |||
12 | static Uuid genV1(); | ||
13 | static Uuid genV2(); | ||
14 | static Uuid genV3(); | ||
15 | static Uuid genV4(); | ||
16 | static Uuid genV5(); | ||
17 | |||
18 | void clear(); | ||
19 | |||
20 | private: | ||
21 | unsigned char data[8]; | ||
22 | }; | ||
23 | }; | ||
24 | |||
25 | #endif | ||