Mercurial > hg > orthanc
comparison Core/Uuid.h @ 2141:a260a8ad83f1
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 16:16:26 +0100 |
parents | aa4b8895cd23 |
children |
comparison
equal
deleted
inserted
replaced
2140:aa4b8895cd23 | 2141:a260a8ad83f1 |
---|---|
32 | 32 |
33 #pragma once | 33 #pragma once |
34 | 34 |
35 #include <string> | 35 #include <string> |
36 | 36 |
37 /** | |
38 * GUID vs. UUID | |
39 * The simple answer is: no difference, they are the same thing. Treat | |
40 * them as a 16 byte (128 bits) value that is used as a unique | |
41 * value. In Microsoft-speak they are called GUIDs, but call them | |
42 * UUIDs when not using Microsoft-speak. | |
43 * http://stackoverflow.com/questions/246930/is-there-any-difference-between-a-guid-and-a-uuid | |
44 **/ | |
45 | |
46 #if !defined(ORTHANC_SANDBOXED) | 37 #if !defined(ORTHANC_SANDBOXED) |
47 # define ORTHANC_SANDBOXED 0 | 38 # define ORTHANC_SANDBOXED 0 |
48 #endif | 39 #endif |
49 | 40 |
50 #include "Toolbox.h" | 41 #include "Toolbox.h" |
51 | 42 |
52 namespace Orthanc | 43 namespace Orthanc |
53 { | 44 { |
54 namespace Toolbox | |
55 { | |
56 std::string GenerateUuid(); | |
57 | |
58 bool IsUuid(const std::string& str); | |
59 | |
60 bool StartsWithUuid(const std::string& str); | |
61 } | |
62 | |
63 #if ORTHANC_SANDBOXED == 0 | 45 #if ORTHANC_SANDBOXED == 0 |
64 class TemporaryFile | 46 class TemporaryFile |
65 { | 47 { |
66 private: | 48 private: |
67 std::string path_; | 49 std::string path_; |