# HG changeset patch # User Sebastien Jodogne # Date 1438675291 -7200 # Node ID f967bdf8534ea479f9bda20b46639fce1efbcb84 # Parent 27661b33f624b77742acba75db41cee81be6dca0 refactoring to Logging.h diff -r 27661b33f624 -r f967bdf8534e Core/Cache/MemoryCache.cpp --- a/Core/Cache/MemoryCache.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/Cache/MemoryCache.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,9 +33,7 @@ #include "../PrecompiledHeaders.h" #include "MemoryCache.h" -#include // This fixes a problem in glog for recent - // releases of MinGW -#include +#include "../Logging.h" namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e Core/FileStorage/CompressedFileStorageAccessor.cpp --- a/Core/FileStorage/CompressedFileStorageAccessor.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/FileStorage/CompressedFileStorageAccessor.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,13 +33,13 @@ #include "../PrecompiledHeaders.h" #include "CompressedFileStorageAccessor.h" +#include "../HttpServer/BufferHttpSender.h" +#include "../Logging.h" #include "../OrthancException.h" +#include "../Uuid.h" #include "FileStorageAccessor.h" -#include "../HttpServer/BufferHttpSender.h" -#include "../Uuid.h" #include -#include namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e Core/FileStorage/FilesystemStorage.cpp --- a/Core/FileStorage/FilesystemStorage.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/FileStorage/FilesystemStorage.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -36,15 +36,13 @@ // http://stackoverflow.com/questions/1576272/storing-large-number-of-files-in-file-system // http://stackoverflow.com/questions/446358/storing-a-large-number-of-images +#include "../Logging.h" #include "../OrthancException.h" #include "../Toolbox.h" #include "../Uuid.h" #include -#if HAVE_GOOGLE_LOG == 1 -#include -#endif static std::string ToString(const boost::filesystem::path& p) { diff -r 27661b33f624 -r f967bdf8534e Core/HttpServer/EmbeddedResourceHttpHandler.cpp --- a/Core/HttpServer/EmbeddedResourceHttpHandler.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/HttpServer/EmbeddedResourceHttpHandler.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,11 +33,11 @@ #include "../PrecompiledHeaders.h" #include "EmbeddedResourceHttpHandler.h" +#include "../Logging.h" #include "../OrthancException.h" #include "HttpOutput.h" #include -#include namespace Orthanc diff -r 27661b33f624 -r f967bdf8534e Core/HttpServer/HttpOutput.cpp --- a/Core/HttpServer/HttpOutput.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/HttpServer/HttpOutput.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,13 +33,15 @@ #include "../PrecompiledHeaders.h" #include "HttpOutput.h" +#include "../Logging.h" +#include "../OrthancException.h" +#include "../Toolbox.h" + #include #include #include -#include #include -#include "../OrthancException.h" -#include "../Toolbox.h" + namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e Core/HttpServer/MongooseServer.cpp --- a/Core/HttpServer/MongooseServer.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/HttpServer/MongooseServer.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -35,6 +35,12 @@ #include "../PrecompiledHeaders.h" #include "MongooseServer.h" +#include "../Logging.h" +#include "../OrthancException.h" +#include "../ChunkedBuffer.h" +#include "HttpToolbox.h" +#include "mongoose.h" + #include #include #include @@ -43,12 +49,6 @@ #include #include #include -#include - -#include "../OrthancException.h" -#include "../ChunkedBuffer.h" -#include "HttpToolbox.h" -#include "mongoose.h" #if ORTHANC_SSL_ENABLED == 1 #include diff -r 27661b33f624 -r f967bdf8534e Core/ImageFormats/ImageAccessor.cpp --- a/Core/ImageFormats/ImageAccessor.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/ImageFormats/ImageAccessor.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,6 +33,7 @@ #include "../PrecompiledHeaders.h" #include "ImageAccessor.h" +#include "../Logging.h" #include "../OrthancException.h" #include "../ChunkedBuffer.h" @@ -40,9 +41,6 @@ #include #include -#if HAVE_GOOGLE_LOG == 1 -#include -#endif namespace Orthanc @@ -108,10 +106,7 @@ { if (readOnly_) { -#if HAVE_GOOGLE_LOG == 1 LOG(ERROR) << "Trying to write on a read-only image"; -#endif - throw OrthancException(ErrorCode_ReadOnly); } @@ -136,10 +131,7 @@ { if (readOnly_) { -#if HAVE_GOOGLE_LOG == 1 LOG(ERROR) << "Trying to write on a read-only image"; -#endif - throw OrthancException(ErrorCode_ReadOnly); } diff -r 27661b33f624 -r f967bdf8534e Core/Logging.h --- a/Core/Logging.h Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/Logging.h Tue Aug 04 10:01:31 2015 +0200 @@ -32,7 +32,10 @@ #pragma once +#if HAVE_GOOGLE_LOG == 1 +#include // This fixes a problem in glog for recent releases of MinGW #include +#endif namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e Core/Lua/LuaContext.cpp --- a/Core/Lua/LuaContext.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/Lua/LuaContext.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,8 +33,9 @@ #include "../PrecompiledHeaders.h" #include "LuaContext.h" +#include "../Logging.h" + #include -#include #include #include diff -r 27661b33f624 -r f967bdf8534e Core/Lua/LuaFunctionCall.cpp --- a/Core/Lua/LuaFunctionCall.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/Lua/LuaFunctionCall.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -36,7 +36,6 @@ #include #include #include -#include namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e Core/MultiThreading/BagOfRunnablesBySteps.cpp --- a/Core/MultiThreading/BagOfRunnablesBySteps.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/MultiThreading/BagOfRunnablesBySteps.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,9 +33,10 @@ #include "../PrecompiledHeaders.h" #include "BagOfRunnablesBySteps.h" +#include "../Logging.h" + #include #include -#include namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e Core/PrecompiledHeaders.h --- a/Core/PrecompiledHeaders.h Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/PrecompiledHeaders.h Tue Aug 04 10:01:31 2015 +0200 @@ -46,7 +46,6 @@ #include #include -#include #include #if ORTHANC_PUGIXML_ENABLED == 1 @@ -54,6 +53,7 @@ #endif #include "Enumerations.h" +#include "Logging.h" #include "OrthancException.h" #include "Toolbox.h" #include "Uuid.h" diff -r 27661b33f624 -r f967bdf8534e Core/RestApi/RestApi.cpp --- a/Core/RestApi/RestApi.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/RestApi/RestApi.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,9 +33,9 @@ #include "../PrecompiledHeaders.h" #include "RestApi.h" +#include "../Logging.h" + #include // To define "_exit()" under Windows -#include - #include namespace Orthanc diff -r 27661b33f624 -r f967bdf8534e Core/RestApi/RestApiOutput.cpp --- a/Core/RestApi/RestApiOutput.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/RestApi/RestApiOutput.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,10 +33,11 @@ #include "../PrecompiledHeaders.h" #include "RestApiOutput.h" +#include "../Logging.h" +#include "../OrthancException.h" + #include -#include -#include "../OrthancException.h" namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e Core/SQLite/Connection.cpp --- a/Core/SQLite/Connection.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/SQLite/Connection.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -47,7 +47,7 @@ #include #if ORTHANC_SQLITE_STANDALONE != 1 -#include +#include "../Logging.h" #endif #include "sqlite3.h" diff -r 27661b33f624 -r f967bdf8534e Core/SQLite/Statement.cpp --- a/Core/SQLite/Statement.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/SQLite/Statement.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -47,7 +47,7 @@ #include #if ORTHANC_SQLITE_STANDALONE != 1 -#include +#include "../Logging.h" #endif #include "sqlite3.h" diff -r 27661b33f624 -r f967bdf8534e Core/SQLite/StatementReference.cpp --- a/Core/SQLite/StatementReference.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/SQLite/StatementReference.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -43,7 +43,7 @@ #include "OrthancSQLiteException.h" #if ORTHANC_SQLITE_STANDALONE != 1 -#include +#include "../Logging.h" #endif #include diff -r 27661b33f624 -r f967bdf8534e Core/Toolbox.cpp --- a/Core/Toolbox.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/Toolbox.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -34,6 +34,7 @@ #include "Toolbox.h" #include "OrthancException.h" +#include "Logging.h" #include #include @@ -53,10 +54,6 @@ #include #endif -#if HAVE_GOOGLE_LOG == 1 -#include -#endif - #if defined(_WIN32) #include #include // For "_spawnvp()" @@ -1135,10 +1132,7 @@ if (pid == -1) { // Error in fork() -#if HAVE_GOOGLE_LOG == 1 LOG(ERROR) << "Cannot fork a child process"; -#endif - throw OrthancException(ErrorCode_SystemCommand); } else if (pid == 0) @@ -1158,10 +1152,7 @@ if (status != 0) { -#if HAVE_GOOGLE_LOG == 1 LOG(ERROR) << "System command failed with status code " << status; -#endif - throw OrthancException(ErrorCode_SystemCommand); } } diff -r 27661b33f624 -r f967bdf8534e OrthancServer/DatabaseWrapper.cpp --- a/OrthancServer/DatabaseWrapper.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/DatabaseWrapper.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -34,10 +34,10 @@ #include "DatabaseWrapper.h" #include "../Core/DicomFormat/DicomArray.h" +#include "../Core/Logging.h" #include "../Core/Uuid.h" #include "EmbeddedResources.h" -#include #include #include diff -r 27661b33f624 -r f967bdf8534e OrthancServer/DicomDirWriter.cpp --- a/OrthancServer/DicomDirWriter.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/DicomDirWriter.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -103,6 +103,7 @@ #include "FromDcmtkBridge.h" #include "ToDcmtkBridge.h" +#include "../Core/Logging.h" #include "../Core/OrthancException.h" #include "../Core/Uuid.h" @@ -118,7 +119,6 @@ #include "dcmtk/dcmdata/dcvrtm.h" /* for class DcmTime */ #include -#include namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e OrthancServer/DicomInstanceToStore.cpp --- a/OrthancServer/DicomInstanceToStore.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/DicomInstanceToStore.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,9 +33,9 @@ #include "DicomInstanceToStore.h" #include "FromDcmtkBridge.h" +#include "../Core/Logging.h" #include -#include namespace Orthanc diff -r 27661b33f624 -r f967bdf8534e OrthancServer/DicomModification.cpp --- a/OrthancServer/DicomModification.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/DicomModification.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,11 +33,11 @@ #include "PrecompiledHeadersServer.h" #include "DicomModification.h" +#include "../Core/Logging.h" #include "../Core/OrthancException.h" #include "FromDcmtkBridge.h" #include // For std::auto_ptr -#include static const std::string ORTHANC_DEIDENTIFICATION_METHOD = "Orthanc " ORTHANC_VERSION " - PS 3.15-2008 Table E.1-1"; diff -r 27661b33f624 -r f967bdf8534e OrthancServer/DicomProtocol/DicomServer.cpp --- a/OrthancServer/DicomProtocol/DicomServer.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/DicomProtocol/DicomServer.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,6 +33,7 @@ #include "../PrecompiledHeadersServer.h" #include "DicomServer.h" +#include "../../Core/Logging.h" #include "../../Core/OrthancException.h" #include "../../Core/Toolbox.h" #include "../../Core/Uuid.h" @@ -43,7 +44,6 @@ #include #include #include -#include #if defined(__linux) #include diff -r 27661b33f624 -r f967bdf8534e OrthancServer/DicomProtocol/DicomUserConnection.cpp --- a/OrthancServer/DicomProtocol/DicomUserConnection.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/DicomProtocol/DicomUserConnection.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -81,10 +81,11 @@ #include "../PrecompiledHeadersServer.h" #include "DicomUserConnection.h" +#include "../../Core/DicomFormat/DicomArray.h" +#include "../../Core/Logging.h" #include "../../Core/OrthancException.h" +#include "../FromDcmtkBridge.h" #include "../ToDcmtkBridge.h" -#include "../FromDcmtkBridge.h" -#include "../../Core/DicomFormat/DicomArray.h" #include #include @@ -93,8 +94,6 @@ #include #include -#include - #ifdef _WIN32 diff -r 27661b33f624 -r f967bdf8534e OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp --- a/OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,10 +33,9 @@ #include "../PrecompiledHeadersServer.h" #include "ReusableDicomUserConnection.h" +#include "../../Core/Logging.h" #include "../../Core/OrthancException.h" -#include - namespace Orthanc { static boost::posix_time::ptime Now() diff -r 27661b33f624 -r f967bdf8534e OrthancServer/FromDcmtkBridge.cpp --- a/OrthancServer/FromDcmtkBridge.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/FromDcmtkBridge.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -42,6 +42,7 @@ #include "FromDcmtkBridge.h" #include "ToDcmtkBridge.h" #include "OrthancInitialization.h" +#include "../Core/Logging.h" #include "../Core/Toolbox.h" #include "../Core/OrthancException.h" #include "../Core/ImageFormats/PngWriter.h" @@ -92,7 +93,6 @@ #include -#include #include diff -r 27661b33f624 -r f967bdf8534e OrthancServer/Internals/CommandDispatcher.cpp --- a/OrthancServer/Internals/CommandDispatcher.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/Internals/CommandDispatcher.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -86,10 +86,10 @@ #include "StoreScp.h" #include "MoveScp.h" #include "../../Core/Toolbox.h" +#include "../../Core/Logging.h" #include /* for class DcmAssociationConfiguration */ #include -#include #define ORTHANC_PROMISCUOUS 1 diff -r 27661b33f624 -r f967bdf8534e OrthancServer/Internals/DicomImageDecoder.cpp --- a/OrthancServer/Internals/DicomImageDecoder.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/Internals/DicomImageDecoder.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -80,6 +80,7 @@ #include "../PrecompiledHeadersServer.h" #include "DicomImageDecoder.h" +#include "../../Core/Logging.h" #include "../../Core/OrthancException.h" #include "../../Core/ImageFormats/ImageProcessing.h" #include "../../Core/ImageFormats/PngWriter.h" // TODO REMOVE THIS @@ -87,8 +88,6 @@ #include "../ToDcmtkBridge.h" #include "../FromDcmtkBridge.h" -#include - #include #if ORTHANC_JPEG_LOSSLESS_ENABLED == 1 diff -r 27661b33f624 -r f967bdf8534e OrthancServer/Internals/FindScp.cpp --- a/OrthancServer/Internals/FindScp.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/Internals/FindScp.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -84,9 +84,9 @@ #include "../FromDcmtkBridge.h" #include "../ToDcmtkBridge.h" +#include "../../Core/Logging.h" #include "../../Core/OrthancException.h" -#include namespace Orthanc diff -r 27661b33f624 -r f967bdf8534e OrthancServer/Internals/MoveScp.cpp --- a/OrthancServer/Internals/MoveScp.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/Internals/MoveScp.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -86,10 +86,9 @@ #include "../FromDcmtkBridge.h" #include "../ToDcmtkBridge.h" +#include "../../Core/Logging.h" #include "../../Core/OrthancException.h" -#include - namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e OrthancServer/Internals/StoreScp.cpp --- a/OrthancServer/Internals/StoreScp.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/Internals/StoreScp.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -86,13 +86,13 @@ #include "../ServerToolbox.h" #include "../ToDcmtkBridge.h" #include "../../Core/OrthancException.h" +#include "../../Core/Logging.h" #include #include #include #include #include -#include namespace Orthanc diff -r 27661b33f624 -r f967bdf8534e OrthancServer/LuaScripting.cpp --- a/OrthancServer/LuaScripting.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/LuaScripting.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -37,6 +37,7 @@ #include "OrthancInitialization.h" #include "../Core/Lua/LuaFunctionCall.h" #include "../Core/HttpServer/StringHttpOutput.h" +#include "../Core/Logging.h" #include "Scheduler/DeleteInstanceCommand.h" #include "Scheduler/StoreScuCommand.h" @@ -45,7 +46,6 @@ #include "Scheduler/CallSystemCommand.h" #include "OrthancRestApi/OrthancRestApi.h" -#include #include diff -r 27661b33f624 -r f967bdf8534e OrthancServer/OrthancFindRequestHandler.cpp --- a/OrthancServer/OrthancFindRequestHandler.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/OrthancFindRequestHandler.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,9 +33,7 @@ #include "PrecompiledHeadersServer.h" #include "OrthancFindRequestHandler.h" -#include -#include - +#include "../Core/Logging.h" #include "../Core/DicomFormat/DicomArray.h" #include "ServerToolbox.h" #include "OrthancInitialization.h" @@ -44,6 +42,8 @@ #include "ResourceFinder.h" #include "DicomFindQuery.h" +#include + namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e OrthancServer/OrthancMoveRequestHandler.cpp --- a/OrthancServer/OrthancMoveRequestHandler.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/OrthancMoveRequestHandler.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,11 +33,10 @@ #include "PrecompiledHeadersServer.h" #include "OrthancMoveRequestHandler.h" -#include - #include "OrthancInitialization.h" #include "FromDcmtkBridge.h" #include "../Core/DicomFormat/DicomArray.h" +#include "../Core/Logging.h" namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,12 +33,11 @@ #include "../PrecompiledHeadersServer.h" #include "OrthancRestApi.h" +#include "../../Core/Logging.h" +#include "../../Core/Uuid.h" #include "../FromDcmtkBridge.h" -#include "../../Core/Uuid.h" #include "../ServerContext.h" -#include - namespace Orthanc { // Modification of DICOM instances ------------------------------------------ diff -r 27661b33f624 -r f967bdf8534e OrthancServer/OrthancRestApi/OrthancRestApi.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestApi.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestApi.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,11 +33,10 @@ #include "../PrecompiledHeadersServer.h" #include "OrthancRestApi.h" +#include "../../Core/Logging.h" #include "../DicomModification.h" #include "../ServerContext.h" -#include - namespace Orthanc { void OrthancRestApi::AnswerStoredInstance(RestApiPostCall& call, diff -r 27661b33f624 -r f967bdf8534e OrthancServer/OrthancRestApi/OrthancRestArchive.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -36,10 +36,10 @@ #include "../DicomDirWriter.h" #include "../../Core/Compression/HierarchicalZipWriter.h" #include "../../Core/HttpServer/FilesystemHttpSender.h" +#include "../../Core/Logging.h" #include "../../Core/Uuid.h" #include "../ServerContext.h" -#include #include #if defined(_MSC_VER) diff -r 27661b33f624 -r f967bdf8534e OrthancServer/OrthancRestApi/OrthancRestChanges.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestChanges.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestChanges.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -35,8 +35,6 @@ #include "../ServerContext.h" -#include - namespace Orthanc { // Changes API -------------------------------------------------------------- diff -r 27661b33f624 -r f967bdf8534e OrthancServer/OrthancRestApi/OrthancRestModalities.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -35,6 +35,7 @@ #include "../OrthancInitialization.h" #include "../../Core/HttpClient.h" +#include "../../Core/Logging.h" #include "../FromDcmtkBridge.h" #include "../Scheduler/ServerJob.h" #include "../Scheduler/StoreScuCommand.h" @@ -42,8 +43,6 @@ #include "../QueryRetrieveHandler.h" #include "../ServerToolbox.h" -#include - namespace Orthanc { /*************************************************************************** diff -r 27661b33f624 -r f967bdf8534e OrthancServer/OrthancRestApi/OrthancRestResources.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestResources.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestResources.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,13 +33,13 @@ #include "../PrecompiledHeadersServer.h" #include "OrthancRestApi.h" +#include "../../Core/Logging.h" #include "../ServerToolbox.h" #include "../FromDcmtkBridge.h" #include "../ResourceFinder.h" #include "../DicomFindQuery.h" #include "../ServerContext.h" -#include namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e OrthancServer/OrthancRestApi/OrthancRestSystem.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -39,8 +39,6 @@ #include "../../Plugins/Engine/OrthancPlugins.h" #include "../ServerContext.h" -#include - namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e OrthancServer/ParsedDicomFile.cpp --- a/OrthancServer/ParsedDicomFile.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/ParsedDicomFile.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -84,6 +84,7 @@ #include "FromDcmtkBridge.h" #include "ToDcmtkBridge.h" #include "Internals/DicomImageDecoder.h" +#include "../Core/Logging.h" #include "../Core/Toolbox.h" #include "../Core/OrthancException.h" #include "../Core/ImageFormats/ImageBuffer.h" @@ -134,7 +135,6 @@ #include -#include #include diff -r 27661b33f624 -r f967bdf8534e OrthancServer/ResourceFinder.cpp --- a/OrthancServer/ResourceFinder.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/ResourceFinder.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,10 +33,10 @@ #include "PrecompiledHeadersServer.h" #include "ResourceFinder.h" +#include "../Core/Logging.h" #include "FromDcmtkBridge.h" #include "ServerContext.h" -#include #include namespace Orthanc diff -r 27661b33f624 -r f967bdf8534e OrthancServer/Scheduler/CallSystemCommand.cpp --- a/OrthancServer/Scheduler/CallSystemCommand.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/Scheduler/CallSystemCommand.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -32,7 +32,7 @@ #include "CallSystemCommand.h" -#include +#include "../../Core/Logging.h" #include "../../Core/Toolbox.h" #include "../../Core/Uuid.h" diff -r 27661b33f624 -r f967bdf8534e OrthancServer/Scheduler/DeleteInstanceCommand.cpp --- a/OrthancServer/Scheduler/DeleteInstanceCommand.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/Scheduler/DeleteInstanceCommand.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -32,7 +32,7 @@ #include "DeleteInstanceCommand.h" -#include +#include "../../Core/Logging.h" namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e OrthancServer/Scheduler/ModifyInstanceCommand.cpp --- a/OrthancServer/Scheduler/ModifyInstanceCommand.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/Scheduler/ModifyInstanceCommand.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -32,7 +32,7 @@ #include "ModifyInstanceCommand.h" -#include +#include "../../Core/Logging.h" namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e OrthancServer/Scheduler/ServerScheduler.cpp --- a/OrthancServer/Scheduler/ServerScheduler.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/Scheduler/ServerScheduler.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,8 +33,7 @@ #include "ServerScheduler.h" #include "../../Core/OrthancException.h" - -#include +#include "../../Core/Logging.h" namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e OrthancServer/Scheduler/StorePeerCommand.cpp --- a/OrthancServer/Scheduler/StorePeerCommand.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/Scheduler/StorePeerCommand.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -32,10 +32,9 @@ #include "StorePeerCommand.h" +#include "../../Core/Logging.h" #include "../../Core/HttpClient.h" -#include - namespace Orthanc { StorePeerCommand::StorePeerCommand(ServerContext& context, diff -r 27661b33f624 -r f967bdf8534e OrthancServer/Scheduler/StoreScuCommand.cpp --- a/OrthancServer/Scheduler/StoreScuCommand.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/Scheduler/StoreScuCommand.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -32,7 +32,7 @@ #include "StoreScuCommand.h" -#include +#include "../../Core/Logging.h" namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e OrthancServer/ServerContext.cpp --- a/OrthancServer/ServerContext.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/ServerContext.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -34,11 +34,11 @@ #include "ServerContext.h" #include "../Core/HttpServer/FilesystemHttpSender.h" +#include "../Core/Logging.h" #include "FromDcmtkBridge.h" #include "ServerToolbox.h" #include "OrthancInitialization.h" -#include #include #include diff -r 27661b33f624 -r f967bdf8534e OrthancServer/ServerIndex.cpp --- a/OrthancServer/ServerIndex.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/ServerIndex.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -41,14 +41,15 @@ #include "EmbeddedResources.h" #include "OrthancInitialization.h" #include "../Core/Toolbox.h" +#include "../Core/Logging.h" #include "../Core/Uuid.h" #include "../Core/DicomFormat/DicomArray.h" + #include "FromDcmtkBridge.h" #include "ServerContext.h" #include #include -#include static const uint64_t MEGA_BYTES = 1024 * 1024; diff -r 27661b33f624 -r f967bdf8534e OrthancServer/ServerToolbox.cpp --- a/OrthancServer/ServerToolbox.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/ServerToolbox.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,10 +33,10 @@ #include "PrecompiledHeadersServer.h" #include "ServerToolbox.h" +#include "../Core/Logging.h" #include "../Core/OrthancException.h" #include -#include namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e OrthancServer/main.cpp --- a/OrthancServer/main.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/OrthancServer/main.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -34,7 +34,6 @@ #include "OrthancRestApi/OrthancRestApi.h" #include -#include #include #include "../Core/Logging.h" diff -r 27661b33f624 -r f967bdf8534e Plugins/Engine/OrthancPluginDatabase.cpp --- a/Plugins/Engine/OrthancPluginDatabase.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Plugins/Engine/OrthancPluginDatabase.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,9 +33,9 @@ #include "OrthancPluginDatabase.h" #include "../../Core/OrthancException.h" +#include "../../Core/Logging.h" #include -#include namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e Plugins/Engine/OrthancPlugins.cpp --- a/Plugins/Engine/OrthancPlugins.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Plugins/Engine/OrthancPlugins.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -35,6 +35,7 @@ #include "../../Core/ChunkedBuffer.h" #include "../../Core/HttpServer/HttpToolbox.h" #include "../../Core/ImageFormats/PngWriter.h" +#include "../../Core/Logging.h" #include "../../Core/OrthancException.h" #include "../../Core/Toolbox.h" #include "../../OrthancServer/OrthancInitialization.h" @@ -42,7 +43,6 @@ #include "../../OrthancServer/ServerToolbox.h" #include -#include namespace Orthanc { diff -r 27661b33f624 -r f967bdf8534e Plugins/Engine/PluginsManager.cpp --- a/Plugins/Engine/PluginsManager.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Plugins/Engine/PluginsManager.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -34,8 +34,8 @@ #include "../../Core/Toolbox.h" #include "../../Core/HttpServer/HttpOutput.h" +#include "../../Core/Logging.h" -#include #include #include #include diff -r 27661b33f624 -r f967bdf8534e Plugins/Engine/SharedLibrary.cpp --- a/Plugins/Engine/SharedLibrary.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Plugins/Engine/SharedLibrary.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -32,6 +32,7 @@ #include "SharedLibrary.h" +#include "../../Core/Logging.h" #include "../../Core/Toolbox.h" #if defined(_WIN32) @@ -42,8 +43,6 @@ #error Support your platform here #endif -#include - namespace Orthanc { SharedLibrary::SharedLibrary(const std::string& path) : diff -r 27661b33f624 -r f967bdf8534e UnitTestsSources/FileStorageTests.cpp --- a/UnitTestsSources/FileStorageTests.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/UnitTestsSources/FileStorageTests.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -34,10 +34,10 @@ #include "gtest/gtest.h" #include -#include #include "../Core/FileStorage/FilesystemStorage.h" #include "../OrthancServer/ServerIndex.h" +#include "../Core/Logging.h" #include "../Core/Toolbox.h" #include "../Core/OrthancException.h" #include "../Core/Uuid.h" diff -r 27661b33f624 -r f967bdf8534e UnitTestsSources/MemoryCacheTests.cpp --- a/UnitTestsSources/MemoryCacheTests.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/UnitTestsSources/MemoryCacheTests.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,13 +33,14 @@ #include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" -#include #include #include #include -#include "../Core/IDynamicObject.h" + #include "../Core/Cache/MemoryCache.h" #include "../Core/Cache/SharedArchive.h" +#include "../Core/IDynamicObject.h" +#include "../Core/Logging.h" TEST(LRU, Basic) diff -r 27661b33f624 -r f967bdf8534e UnitTestsSources/MultiThreadingTests.cpp --- a/UnitTestsSources/MultiThreadingTests.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/UnitTestsSources/MultiThreadingTests.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -32,10 +32,8 @@ #include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" -#include #include "../OrthancServer/Scheduler/ServerScheduler.h" - #include "../Core/OrthancException.h" #include "../Core/Toolbox.h" #include "../Core/MultiThreading/Locker.h" diff -r 27661b33f624 -r f967bdf8534e UnitTestsSources/PluginsTests.cpp --- a/UnitTestsSources/PluginsTests.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/UnitTestsSources/PluginsTests.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,8 +33,6 @@ #include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" -#include - #include "../Plugins/Engine/PluginsManager.h" using namespace Orthanc; diff -r 27661b33f624 -r f967bdf8534e UnitTestsSources/RestApiTests.cpp --- a/UnitTestsSources/RestApiTests.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/UnitTestsSources/RestApiTests.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -34,10 +34,10 @@ #include "gtest/gtest.h" #include -#include #include "../Core/ChunkedBuffer.h" #include "../Core/HttpClient.h" +#include "../Core/Logging.h" #include "../Core/RestApi/RestApi.h" #include "../Core/Uuid.h" #include "../Core/OrthancException.h" diff -r 27661b33f624 -r f967bdf8534e UnitTestsSources/ServerIndexTests.cpp --- a/UnitTestsSources/ServerIndexTests.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/UnitTestsSources/ServerIndexTests.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,15 +33,15 @@ #include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" +#include "../Core/DicomFormat/DicomNullValue.h" +#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" -#include "../Core/Uuid.h" -#include "../Core/DicomFormat/DicomNullValue.h" -#include "../Core/FileStorage/FilesystemStorage.h" #include -#include #include using namespace Orthanc;