comparison OrthancFramework/Sources/Logging.h @ 4313:91554aecff9a

removed a friend method for better abi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Nov 2020 16:09:05 +0100
parents 0923247e69f6
children d9473bd5ed43
comparison
equal deleted inserted replaced
4312:6d49e3b6ff77 4313:91554aecff9a
22 22
23 #pragma once 23 #pragma once
24 24
25 // To have ORTHANC_ENABLE_LOGGING defined if using the shared library 25 // To have ORTHANC_ENABLE_LOGGING defined if using the shared library
26 #include "OrthancFramework.h" 26 #include "OrthancFramework.h"
27 #include "Compatibility.h"
27 28
28 #include <iostream> 29 #include <iostream>
29 30
30 #if !defined(ORTHANC_ENABLE_LOGGING) 31 #if !defined(ORTHANC_ENABLE_LOGGING)
31 # error The macro ORTHANC_ENABLE_LOGGING must be defined 32 # error The macro ORTHANC_ENABLE_LOGGING must be defined
110 111
111 ORTHANC_PUBLIC void SetTargetFile(const std::string& path); 112 ORTHANC_PUBLIC void SetTargetFile(const std::string& path);
112 113
113 ORTHANC_PUBLIC void SetTargetFolder(const std::string& path); 114 ORTHANC_PUBLIC void SetTargetFolder(const std::string& path);
114 115
115 struct NullStream : public std::ostream 116 struct ORTHANC_LOCAL NullStream : public std::ostream
116 { 117 {
117 NullStream() : 118 NullStream() :
118 std::ios(0), 119 std::ios(0),
119 std::ostream(0) 120 std::ostream(0)
120 { 121 {
221 222
222 223
223 224
224 #if (ORTHANC_ENABLE_LOGGING == 1 && \ 225 #if (ORTHANC_ENABLE_LOGGING == 1 && \
225 ORTHANC_ENABLE_LOGGING_STDIO == 0) 226 ORTHANC_ENABLE_LOGGING_STDIO == 0)
226
227 #include "Compatibility.h" // For std::unique_ptr<>
228 227
229 #include <boost/lexical_cast.hpp> 228 #include <boost/lexical_cast.hpp>
230 #include <boost/noncopyable.hpp> 229 #include <boost/noncopyable.hpp>
231 #include <boost/thread/mutex.hpp> 230 #include <boost/thread/mutex.hpp>
232 #include <sstream> 231 #include <sstream>