comparison Core/Toolbox.h @ 2057:54417b0831c4

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 29 Jun 2016 13:40:24 +0200
parents 35ccba7adae9
children ed383e7a6753
comparison
equal deleted inserted replaced
2056:e166a902b3c4 2057:54417b0831c4
47 { 47 {
48 }; 48 };
49 49
50 namespace Toolbox 50 namespace Toolbox
51 { 51 {
52 #if !defined(ORTHANC_SANDBOXED) || ORTHANC_SANDBOXED != 1
52 ServerBarrierEvent ServerBarrier(const bool& stopFlag); 53 ServerBarrierEvent ServerBarrier(const bool& stopFlag);
53 54
54 ServerBarrierEvent ServerBarrier(); 55 ServerBarrierEvent ServerBarrier();
56 #endif
55 57
56 void ToUpperCase(std::string& s); // Inplace version 58 void ToUpperCase(std::string& s); // Inplace version
57 59
58 void ToLowerCase(std::string& s); // Inplace version 60 void ToLowerCase(std::string& s); // Inplace version
59 61
75 77
76 void WriteFile(const void* content, 78 void WriteFile(const void* content,
77 size_t size, 79 size_t size,
78 const std::string& path); 80 const std::string& path);
79 81
82 #if !defined(ORTHANC_SANDBOXED) || ORTHANC_SANDBOXED != 1
80 void USleep(uint64_t microSeconds); 83 void USleep(uint64_t microSeconds);
84 #endif
81 85
82 void RemoveFile(const std::string& path); 86 void RemoveFile(const std::string& path);
83 87
84 void SplitUriComponents(UriComponents& components, 88 void SplitUriComponents(UriComponents& components,
85 const std::string& uri); 89 const std::string& uri);
135 void EncodeDataUriScheme(std::string& result, 139 void EncodeDataUriScheme(std::string& result,
136 const std::string& mime, 140 const std::string& mime,
137 const std::string& content); 141 const std::string& content);
138 #endif 142 #endif
139 143
144 #if !defined(ORTHANC_SANDBOXED) || ORTHANC_SANDBOXED != 1
140 std::string GetPathToExecutable(); 145 std::string GetPathToExecutable();
141 146
142 std::string GetDirectoryOfExecutable(); 147 std::string GetDirectoryOfExecutable();
148 #endif
143 149
144 std::string ConvertToUtf8(const std::string& source, 150 std::string ConvertToUtf8(const std::string& source,
145 Encoding sourceEncoding); 151 Encoding sourceEncoding);
146 152
147 std::string ConvertFromUtf8(const std::string& source, 153 std::string ConvertFromUtf8(const std::string& source,