Mercurial > hg > orthanc
comparison Core/Toolbox.h @ 2141:a260a8ad83f1
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 16:16:26 +0100 |
parents | aa4b8895cd23 |
children | fd5875662670 |
comparison
equal
deleted
inserted
replaced
2140:aa4b8895cd23 | 2141:a260a8ad83f1 |
---|---|
58 | 58 |
59 #if !defined(ORTHANC_SANDBOXED) | 59 #if !defined(ORTHANC_SANDBOXED) |
60 # define ORTHANC_SANDBOXED 0 | 60 # define ORTHANC_SANDBOXED 0 |
61 #endif | 61 #endif |
62 | 62 |
63 | |
64 /** | |
65 * NOTE: GUID vs. UUID | |
66 * The simple answer is: no difference, they are the same thing. Treat | |
67 * them as a 16 byte (128 bits) value that is used as a unique | |
68 * value. In Microsoft-speak they are called GUIDs, but call them | |
69 * UUIDs when not using Microsoft-speak. | |
70 * http://stackoverflow.com/questions/246930/is-there-any-difference-between-a-guid-and-a-uuid | |
71 **/ | |
72 | |
73 | |
74 | |
63 namespace Orthanc | 75 namespace Orthanc |
64 { | 76 { |
65 typedef std::vector<std::string> UriComponents; | 77 typedef std::vector<std::string> UriComponents; |
66 | 78 |
67 class NullType | 79 class NullType |
193 int defaultValue); | 205 int defaultValue); |
194 | 206 |
195 unsigned int GetJsonUnsignedIntegerField(const ::Json::Value& json, | 207 unsigned int GetJsonUnsignedIntegerField(const ::Json::Value& json, |
196 const std::string& key, | 208 const std::string& key, |
197 unsigned int defaultValue); | 209 unsigned int defaultValue); |
210 | |
211 std::string GenerateUuid(); | |
212 | |
213 bool IsUuid(const std::string& str); | |
214 | |
215 bool StartsWithUuid(const std::string& str); | |
198 } | 216 } |
199 | 217 |
200 | 218 |
201 #if ORTHANC_SANDBOXED == 0 | 219 #if ORTHANC_SANDBOXED == 0 |
202 namespace SystemToolbox | 220 namespace SystemToolbox |