# HG changeset patch # User Sebastien Jodogne # Date 1478705200 -3600 # Node ID 5a88409201217ae73074b81548889239f99e8c29 # Parent a260a8ad83f1504da77b1bc6be7e357ae777035b reorganization diff -r a260a8ad83f1 -r 5a8840920121 CMakeLists.txt --- a/CMakeLists.txt Wed Nov 09 16:16:26 2016 +0100 +++ b/CMakeLists.txt Wed Nov 09 16:26:40 2016 +0100 @@ -146,8 +146,8 @@ Core/SQLite/StatementId.cpp Core/SQLite/StatementReference.cpp Core/SQLite/Transaction.cpp + Core/TemporaryFile.cpp Core/Toolbox.cpp - Core/Uuid.cpp Core/WebServiceParameters.cpp Core/Lua/LuaContext.cpp Core/Lua/LuaFunctionCall.cpp diff -r a260a8ad83f1 -r 5a8840920121 Core/Cache/SharedArchive.cpp --- a/Core/Cache/SharedArchive.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/Core/Cache/SharedArchive.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -34,9 +34,6 @@ #include "SharedArchive.h" -#include "../Uuid.h" - - namespace Orthanc { void SharedArchive::RemoveInternal(const std::string& id) diff -r a260a8ad83f1 -r 5a8840920121 Core/FileStorage/FilesystemStorage.cpp --- a/Core/FileStorage/FilesystemStorage.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/Core/FileStorage/FilesystemStorage.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -39,7 +39,6 @@ #include "../Logging.h" #include "../OrthancException.h" #include "../Toolbox.h" -#include "../Uuid.h" #include diff -r a260a8ad83f1 -r 5a8840920121 Core/FileStorage/StorageAccessor.cpp --- a/Core/FileStorage/StorageAccessor.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/Core/FileStorage/StorageAccessor.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -36,6 +36,7 @@ #include "../Compression/ZlibCompressor.h" #include "../OrthancException.h" #include "../HttpServer/HttpStreamTranscoder.h" +#include "../Toolbox.h" namespace Orthanc { diff -r a260a8ad83f1 -r 5a8840920121 Core/HttpServer/HttpOutput.h --- a/Core/HttpServer/HttpOutput.h Wed Nov 09 16:16:26 2016 +0100 +++ b/Core/HttpServer/HttpOutput.h Wed Nov 09 16:26:40 2016 +0100 @@ -32,13 +32,14 @@ #pragma once +#include "../Enumerations.h" +#include "IHttpOutputStream.h" +#include "IHttpStreamAnswer.h" + #include #include #include -#include "../Enumerations.h" -#include "IHttpOutputStream.h" -#include "IHttpStreamAnswer.h" -#include "../Uuid.h" +#include namespace Orthanc { diff -r a260a8ad83f1 -r 5a8840920121 Core/HttpServer/IHttpHandler.h --- a/Core/HttpServer/IHttpHandler.h Wed Nov 09 16:16:26 2016 +0100 +++ b/Core/HttpServer/IHttpHandler.h Wed Nov 09 16:26:40 2016 +0100 @@ -32,7 +32,7 @@ #pragma once -#include "../Enumerations.h" +#include "../Toolbox.h" #include "HttpOutput.h" #include diff -r a260a8ad83f1 -r 5a8840920121 Core/RestApi/RestApiOutput.cpp --- a/Core/RestApi/RestApiOutput.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/Core/RestApi/RestApiOutput.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -35,6 +35,7 @@ #include "../Logging.h" #include "../OrthancException.h" +#include "../Toolbox.h" #include diff -r a260a8ad83f1 -r 5a8840920121 Core/TemporaryFile.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Core/TemporaryFile.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -0,0 +1,79 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics + * Department, University Hospital of Liege, Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeaders.h" +#include "TemporaryFile.h" + +#include + +namespace Orthanc +{ + static std::string CreateTemporaryPath(const char* extension) + { +#if BOOST_HAS_FILESYSTEM_V3 == 1 + boost::filesystem::path tmpDir = boost::filesystem::temp_directory_path(); +#elif defined(__linux__) + boost::filesystem::path tmpDir("/tmp"); +#else +#error Support your platform here +#endif + + // We use UUID to create unique path to temporary files + std::string filename = "Orthanc-" + Orthanc::Toolbox::GenerateUuid(); + + if (extension != NULL) + { + filename.append(extension); + } + + tmpDir /= filename; + return tmpDir.string(); + } + + + TemporaryFile::TemporaryFile() : + path_(CreateTemporaryPath(NULL)) + { + } + + + TemporaryFile::TemporaryFile(const char* extension) : + path_(CreateTemporaryPath(extension)) + { + } + + + TemporaryFile::~TemporaryFile() + { + boost::filesystem::remove(path_); + } +} diff -r a260a8ad83f1 -r 5a8840920121 Core/TemporaryFile.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Core/TemporaryFile.h Wed Nov 09 16:26:40 2016 +0100 @@ -0,0 +1,76 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics + * Department, University Hospital of Liege, Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#pragma once + +#include + +#if !defined(ORTHANC_SANDBOXED) +# define ORTHANC_SANDBOXED 0 +#endif + +#if ORTHANC_SANDBOXED == 1 +# error The class TemporaryFile cannot be used in sandboxed environments +#endif + +#include "Toolbox.h" + +namespace Orthanc +{ + class TemporaryFile + { + private: + std::string path_; + + public: + TemporaryFile(); + + TemporaryFile(const char* extension); + + ~TemporaryFile(); + + const std::string& GetPath() const + { + return path_; + } + + void Write(const std::string& content) + { + SystemToolbox::WriteFile(content, path_); + } + + void Read(std::string& content) const + { + SystemToolbox::ReadFile(content, path_); + } + }; +} diff -r a260a8ad83f1 -r 5a8840920121 Core/Uuid.cpp --- a/Core/Uuid.cpp Wed Nov 09 16:16:26 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,81 +0,0 @@ -/** - * Orthanc - A Lightweight, RESTful DICOM Store - * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics - * Department, University Hospital of Liege, Belgium - * - * This program is free software: you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * In addition, as a special exception, the copyright holders of this - * program give permission to link the code of its release with the - * OpenSSL project's "OpenSSL" library (or with modified versions of it - * that use the same license as the "OpenSSL" library), and distribute - * the linked executables. You must obey the GNU General Public License - * in all respects for all of the code used other than "OpenSSL". If you - * modify file(s) with this exception, you may extend this exception to - * your version of the file(s), but you are not obligated to do so. If - * you do not wish to do so, delete this exception statement from your - * version. If you delete this exception statement from all source files - * in the program, then also delete it here. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - **/ - - -#include "PrecompiledHeaders.h" -#include "Uuid.h" - -#include - -namespace Orthanc -{ - static std::string CreateTemporaryPath(const char* extension) - { -#if BOOST_HAS_FILESYSTEM_V3 == 1 - boost::filesystem::path tmpDir = boost::filesystem::temp_directory_path(); -#elif defined(__linux__) - boost::filesystem::path tmpDir("/tmp"); -#else -#error Support your platform here -#endif - - // We use UUID to create unique path to temporary files - std::string filename = "Orthanc-" + Orthanc::Toolbox::GenerateUuid(); - - if (extension != NULL) - { - filename.append(extension); - } - - tmpDir /= filename; - return tmpDir.string(); - } - - -#if ORTHANC_SANDBOXED == 0 - TemporaryFile::TemporaryFile() : - path_(CreateTemporaryPath(NULL)) - { - } - - - TemporaryFile::TemporaryFile(const char* extension) : - path_(CreateTemporaryPath(extension)) - { - } - - - TemporaryFile::~TemporaryFile() - { - boost::filesystem::remove(path_); - } -#endif -} diff -r a260a8ad83f1 -r 5a8840920121 Core/Uuid.h --- a/Core/Uuid.h Wed Nov 09 16:16:26 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ -/** - * Orthanc - A Lightweight, RESTful DICOM Store - * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics - * Department, University Hospital of Liege, Belgium - * - * This program is free software: you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * In addition, as a special exception, the copyright holders of this - * program give permission to link the code of its release with the - * OpenSSL project's "OpenSSL" library (or with modified versions of it - * that use the same license as the "OpenSSL" library), and distribute - * the linked executables. You must obey the GNU General Public License - * in all respects for all of the code used other than "OpenSSL". If you - * modify file(s) with this exception, you may extend this exception to - * your version of the file(s), but you are not obligated to do so. If - * you do not wish to do so, delete this exception statement from your - * version. If you delete this exception statement from all source files - * in the program, then also delete it here. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - **/ - - -#pragma once - -#include - -#if !defined(ORTHANC_SANDBOXED) -# define ORTHANC_SANDBOXED 0 -#endif - -#include "Toolbox.h" - -namespace Orthanc -{ -#if ORTHANC_SANDBOXED == 0 - class TemporaryFile - { - private: - std::string path_; - - public: - TemporaryFile(); - - TemporaryFile(const char* extension); - - ~TemporaryFile(); - - const std::string& GetPath() const - { - return path_; - } - - void Write(const std::string& content) - { - SystemToolbox::WriteFile(content, path_); - } - - void Read(std::string& content) const - { - SystemToolbox::ReadFile(content, path_); - } - }; -#endif -} diff -r a260a8ad83f1 -r 5a8840920121 OrthancServer/DatabaseWrapper.cpp --- a/OrthancServer/DatabaseWrapper.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/OrthancServer/DatabaseWrapper.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -35,7 +35,6 @@ #include "../Core/DicomFormat/DicomArray.h" #include "../Core/Logging.h" -#include "../Core/Uuid.h" #include "EmbeddedResources.h" #include "ServerToolbox.h" diff -r a260a8ad83f1 -r 5a8840920121 OrthancServer/DicomDirWriter.cpp --- a/OrthancServer/DicomDirWriter.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/OrthancServer/DicomDirWriter.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -105,7 +105,7 @@ #include "../Core/Logging.h" #include "../Core/OrthancException.h" -#include "../Core/Uuid.h" +#include "../Core/TemporaryFile.h" #include #include diff -r a260a8ad83f1 -r 5a8840920121 OrthancServer/DicomProtocol/DicomServer.cpp --- a/OrthancServer/DicomProtocol/DicomServer.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/OrthancServer/DicomProtocol/DicomServer.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -36,7 +36,6 @@ #include "../../Core/Logging.h" #include "../../Core/OrthancException.h" #include "../../Core/Toolbox.h" -#include "../../Core/Uuid.h" #include "../Internals/CommandDispatcher.h" #include "../OrthancInitialization.h" #include "EmbeddedResources.h" diff -r a260a8ad83f1 -r 5a8840920121 OrthancServer/FromDcmtkBridge.cpp --- a/OrthancServer/FromDcmtkBridge.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/OrthancServer/FromDcmtkBridge.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -40,7 +40,7 @@ #include "ToDcmtkBridge.h" #include "../Core/Logging.h" #include "../Core/Toolbox.h" -#include "../Core/Uuid.h" +#include "../Core/TemporaryFile.h" #include "../Core/OrthancException.h" #include diff -r a260a8ad83f1 -r 5a8840920121 OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -34,7 +34,6 @@ #include "OrthancRestApi.h" #include "../../Core/Logging.h" -#include "../../Core/Uuid.h" #include "../FromDcmtkBridge.h" #include "../ServerContext.h" #include "../OrthancInitialization.h" diff -r a260a8ad83f1 -r 5a8840920121 OrthancServer/OrthancRestApi/OrthancRestArchive.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -38,7 +38,7 @@ #include "../../Core/Compression/HierarchicalZipWriter.h" #include "../../Core/HttpServer/FilesystemHttpSender.h" #include "../../Core/Logging.h" -#include "../../Core/Uuid.h" +#include "../../Core/TemporaryFile.h" #include "../ServerContext.h" #include diff -r a260a8ad83f1 -r 5a8840920121 OrthancServer/ParsedDicomFile.cpp --- a/OrthancServer/ParsedDicomFile.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/OrthancServer/ParsedDicomFile.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -90,7 +90,6 @@ #include "../Core/Logging.h" #include "../Core/OrthancException.h" #include "../Core/Toolbox.h" -#include "../Core/Uuid.h" #include #include diff -r a260a8ad83f1 -r 5a8840920121 OrthancServer/ParsedDicomFile.h --- a/OrthancServer/ParsedDicomFile.h Wed Nov 09 16:16:26 2016 +0100 +++ b/OrthancServer/ParsedDicomFile.h Wed Nov 09 16:26:40 2016 +0100 @@ -36,6 +36,7 @@ #include "../Core/Images/ImageAccessor.h" #include "../Core/IDynamicObject.h" #include "../Core/RestApi/RestApiOutput.h" +#include "../Core/Toolbox.h" #include "ServerEnumerations.h" class DcmDataset; diff -r a260a8ad83f1 -r 5a8840920121 OrthancServer/Scheduler/CallSystemCommand.cpp --- a/OrthancServer/Scheduler/CallSystemCommand.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/OrthancServer/Scheduler/CallSystemCommand.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -35,7 +35,7 @@ #include "../../Core/Logging.h" #include "../../Core/Toolbox.h" -#include "../../Core/Uuid.h" +#include "../../Core/TemporaryFile.h" namespace Orthanc { diff -r a260a8ad83f1 -r 5a8840920121 OrthancServer/Scheduler/ServerJob.cpp --- a/OrthancServer/Scheduler/ServerJob.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/OrthancServer/Scheduler/ServerJob.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -35,7 +35,6 @@ #include "../../Core/OrthancException.h" #include "../../Core/Toolbox.h" -#include "../../Core/Uuid.h" namespace Orthanc { diff -r a260a8ad83f1 -r 5a8840920121 OrthancServer/ServerIndex.cpp --- a/OrthancServer/ServerIndex.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/OrthancServer/ServerIndex.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -43,7 +43,6 @@ #include "ServerToolbox.h" #include "../Core/Toolbox.h" #include "../Core/Logging.h" -#include "../Core/Uuid.h" #include "../Core/DicomFormat/DicomArray.h" #include "FromDcmtkBridge.h" diff -r a260a8ad83f1 -r 5a8840920121 OrthancServer/main.cpp --- a/OrthancServer/main.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/OrthancServer/main.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -36,7 +36,6 @@ #include #include "../Core/Logging.h" -#include "../Core/Uuid.h" #include "../Core/HttpServer/EmbeddedResourceHttpHandler.h" #include "../Core/HttpServer/FilesystemHttpHandler.h" #include "../Core/Lua/LuaFunctionCall.h" diff -r a260a8ad83f1 -r 5a8840920121 UnitTestsSources/DicomMapTests.cpp --- a/UnitTestsSources/DicomMapTests.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/UnitTestsSources/DicomMapTests.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -33,7 +33,6 @@ #include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" -#include "../Core/Uuid.h" #include "../Core/OrthancException.h" #include "../Core/DicomFormat/DicomMap.h" #include "../OrthancServer/FromDcmtkBridge.h" diff -r a260a8ad83f1 -r 5a8840920121 UnitTestsSources/FileStorageTests.cpp --- a/UnitTestsSources/FileStorageTests.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/UnitTestsSources/FileStorageTests.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -42,7 +42,6 @@ #include "../Core/Logging.h" #include "../Core/OrthancException.h" #include "../Core/Toolbox.h" -#include "../Core/Uuid.h" #include "../OrthancServer/ServerIndex.h" using namespace Orthanc; diff -r a260a8ad83f1 -r 5a8840920121 UnitTestsSources/FromDcmtkTests.cpp --- a/UnitTestsSources/FromDcmtkTests.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/UnitTestsSources/FromDcmtkTests.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -44,7 +44,6 @@ #include "../Core/Images/PngWriter.h" #include "../Core/Images/Image.h" #include "../Core/Images/ImageProcessing.h" -#include "../Core/Uuid.h" #include "../Core/Endianness.h" #include "../Resources/EncodingTests.h" #include "../OrthancServer/DicomProtocol/DicomFindAnswers.h" diff -r a260a8ad83f1 -r 5a8840920121 UnitTestsSources/ImageTests.cpp --- a/UnitTestsSources/ImageTests.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/UnitTestsSources/ImageTests.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -41,7 +41,7 @@ #include "../Core/Images/PngReader.h" #include "../Core/Images/PngWriter.h" #include "../Core/Toolbox.h" -#include "../Core/Uuid.h" +#include "../Core/TemporaryFile.h" #include "../OrthancServer/OrthancInitialization.h" #include diff -r a260a8ad83f1 -r 5a8840920121 UnitTestsSources/RestApiTests.cpp --- a/UnitTestsSources/RestApiTests.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/UnitTestsSources/RestApiTests.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -41,7 +41,6 @@ #include "../Core/HttpClient.h" #include "../Core/Logging.h" #include "../Core/RestApi/RestApi.h" -#include "../Core/Uuid.h" #include "../Core/OrthancException.h" #include "../Core/Compression/ZlibCompressor.h" #include "../Core/RestApi/RestApiHierarchy.h" diff -r a260a8ad83f1 -r 5a8840920121 UnitTestsSources/ServerIndexTests.cpp --- a/UnitTestsSources/ServerIndexTests.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/UnitTestsSources/ServerIndexTests.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -35,7 +35,6 @@ #include "../Core/FileStorage/FilesystemStorage.h" #include "../Core/Logging.h" -#include "../Core/Uuid.h" #include "../OrthancServer/DatabaseWrapper.h" #include "../OrthancServer/ServerContext.h" #include "../OrthancServer/ServerIndex.h" diff -r a260a8ad83f1 -r 5a8840920121 UnitTestsSources/StreamTests.cpp --- a/UnitTestsSources/StreamTests.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/UnitTestsSources/StreamTests.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -35,7 +35,6 @@ #include "../Core/Toolbox.h" #include "../Core/OrthancException.h" -#include "../Core/Uuid.h" #include "../Core/HttpServer/BufferHttpSender.h" #include "../Core/HttpServer/FilesystemHttpSender.h" #include "../Core/HttpServer/HttpStreamTranscoder.h" diff -r a260a8ad83f1 -r 5a8840920121 UnitTestsSources/UnitTestsMain.cpp --- a/UnitTestsSources/UnitTestsMain.cpp Wed Nov 09 16:16:26 2016 +0100 +++ b/UnitTestsSources/UnitTestsMain.cpp Wed Nov 09 16:26:40 2016 +0100 @@ -41,8 +41,8 @@ #include "../Core/HttpServer/HttpToolbox.h" #include "../Core/Logging.h" #include "../Core/OrthancException.h" +#include "../Core/TemporaryFile.h" #include "../Core/Toolbox.h" -#include "../Core/Uuid.h" #include "../OrthancServer/OrthancInitialization.h"