Mercurial > hg > orthanc
changeset 6896:a6f84df80a28 streaming
tagging some classes as deprecated
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Mon, 01 Jun 2026 21:58:59 +0200 |
| parents | 4372fdde043a |
| children | 55194a6e7d07 |
| files | OrthancFramework/Sources/Cache/ICachePageProvider.h OrthancFramework/Sources/Cache/ICacheable.h OrthancFramework/Sources/Cache/MemoryCache.cpp OrthancFramework/Sources/Cache/MemoryCache.h OrthancFramework/Sources/Cache/MemoryObjectCache.cpp OrthancFramework/Sources/Cache/MemoryObjectCache.h OrthancFramework/Sources/Cache/MemoryStringCache.h OrthancFramework/Sources/DicomParsing/ParsedDicomCache.cpp OrthancFramework/Sources/DicomParsing/ParsedDicomCache.h OrthancFramework/UnitTestsSources/FromDcmtkTests.cpp OrthancFramework/UnitTestsSources/MemoryCacheTests.cpp OrthancServer/UnitTestsSources/SizeOfTests.cpp |
| diffstat | 12 files changed, 38 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Cache/ICachePageProvider.h Mon Jun 01 21:39:19 2026 +0200 +++ b/OrthancFramework/Sources/Cache/ICachePageProvider.h Mon Jun 01 21:58:59 2026 +0200 @@ -24,14 +24,16 @@ #pragma once +#include "../Compatibility.h" +#include "../IDynamicObject.h" + #include <string> -#include "../IDynamicObject.h" namespace Orthanc { namespace Deprecated { - class ICachePageProvider + class ORTHANC_DEPRECATED(ICachePageProvider) { public: virtual ~ICachePageProvider()
--- a/OrthancFramework/Sources/Cache/ICacheable.h Mon Jun 01 21:39:19 2026 +0200 +++ b/OrthancFramework/Sources/Cache/ICacheable.h Mon Jun 01 21:58:59 2026 +0200 @@ -24,11 +24,13 @@ #pragma once +#include "../Compatibility.h" + #include <boost/noncopyable.hpp> namespace Orthanc { - class ICacheable : public boost::noncopyable + class ORTHANC_DEPRECATED(ICacheable) : public boost::noncopyable { public: virtual ~ICacheable()
--- a/OrthancFramework/Sources/Cache/MemoryCache.cpp Mon Jun 01 21:39:19 2026 +0200 +++ b/OrthancFramework/Sources/Cache/MemoryCache.cpp Mon Jun 01 21:58:59 2026 +0200 @@ -22,11 +22,16 @@ **/ +#if defined(__GNUC__) || defined(__clang__) +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include "../PrecompiledHeaders.h" #include "MemoryCache.h" #include "../Logging.h" + namespace Orthanc { namespace Deprecated
--- a/OrthancFramework/Sources/Cache/MemoryCache.h Mon Jun 01 21:39:19 2026 +0200 +++ b/OrthancFramework/Sources/Cache/MemoryCache.h Mon Jun 01 21:58:59 2026 +0200 @@ -37,7 +37,7 @@ /** * WARNING: This class is NOT thread-safe. **/ - class ORTHANC_PUBLIC MemoryCache : public boost::noncopyable + class ORTHANC_PUBLIC ORTHANC_DEPRECATED(MemoryCache) : public boost::noncopyable { private: struct Page
--- a/OrthancFramework/Sources/Cache/MemoryObjectCache.cpp Mon Jun 01 21:39:19 2026 +0200 +++ b/OrthancFramework/Sources/Cache/MemoryObjectCache.cpp Mon Jun 01 21:58:59 2026 +0200 @@ -22,6 +22,10 @@ **/ +#if defined(__GNUC__) || defined(__clang__) +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include "../PrecompiledHeaders.h" #include "MemoryObjectCache.h"
--- a/OrthancFramework/Sources/Cache/MemoryObjectCache.h Mon Jun 01 21:39:19 2026 +0200 +++ b/OrthancFramework/Sources/Cache/MemoryObjectCache.h Mon Jun 01 21:58:59 2026 +0200 @@ -42,7 +42,7 @@ /** * Note: this class is thread safe **/ - class ORTHANC_PUBLIC MemoryObjectCache : public boost::noncopyable + class ORTHANC_PUBLIC ORTHANC_DEPRECATED(MemoryObjectCache) : public boost::noncopyable { private: class Item; @@ -82,7 +82,7 @@ void Invalidate(const std::string& key); - class Accessor : public boost::noncopyable + class ORTHANC_PUBLIC Accessor : public boost::noncopyable { private: #if !defined(__EMSCRIPTEN__)
--- a/OrthancFramework/Sources/Cache/MemoryStringCache.h Mon Jun 01 21:39:19 2026 +0200 +++ b/OrthancFramework/Sources/Cache/MemoryStringCache.h Mon Jun 01 21:58:59 2026 +0200 @@ -46,7 +46,7 @@ * * Note: this class is thread safe **/ - class ORTHANC_PUBLIC MemoryStringCache : public boost::noncopyable + class ORTHANC_PUBLIC ORTHANC_DEPRECATED(MemoryStringCache) : public boost::noncopyable { public: class ORTHANC_PUBLIC Accessor : public boost::noncopyable
--- a/OrthancFramework/Sources/DicomParsing/ParsedDicomCache.cpp Mon Jun 01 21:39:19 2026 +0200 +++ b/OrthancFramework/Sources/DicomParsing/ParsedDicomCache.cpp Mon Jun 01 21:58:59 2026 +0200 @@ -22,6 +22,10 @@ **/ +#if defined(__GNUC__) || defined(__clang__) +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include "../PrecompiledHeaders.h" #include "ParsedDicomCache.h"
--- a/OrthancFramework/Sources/DicomParsing/ParsedDicomCache.h Mon Jun 01 21:39:19 2026 +0200 +++ b/OrthancFramework/Sources/DicomParsing/ParsedDicomCache.h Mon Jun 01 21:58:59 2026 +0200 @@ -29,7 +29,7 @@ namespace Orthanc { - class ORTHANC_PUBLIC ParsedDicomCache : public boost::noncopyable + class ORTHANC_PUBLIC ORTHANC_DEPRECATED(ParsedDicomCache) : public boost::noncopyable { private: class Item;
--- a/OrthancFramework/UnitTestsSources/FromDcmtkTests.cpp Mon Jun 01 21:39:19 2026 +0200 +++ b/OrthancFramework/UnitTestsSources/FromDcmtkTests.cpp Mon Jun 01 21:58:59 2026 +0200 @@ -37,6 +37,10 @@ #include <gtest/gtest.h> +#if defined(__GNUC__) || defined(__clang__) +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include "../Sources/Compatibility.h" #include "../Sources/DicomFormat/DicomImageInformation.h" #include "../Sources/DicomFormat/DicomPath.h"
--- a/OrthancFramework/UnitTestsSources/MemoryCacheTests.cpp Mon Jun 01 21:39:19 2026 +0200 +++ b/OrthancFramework/UnitTestsSources/MemoryCacheTests.cpp Mon Jun 01 21:58:59 2026 +0200 @@ -29,6 +29,10 @@ #include <gtest/gtest.h> +#if defined(__GNUC__) || defined(__clang__) +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include "../Sources/Cache/MemoryCache.h" #include "../Sources/Cache/MemoryStringCache.h" #include "../Sources/Cache/SharedArchive.h"
--- a/OrthancServer/UnitTestsSources/SizeOfTests.cpp Mon Jun 01 21:39:19 2026 +0200 +++ b/OrthancServer/UnitTestsSources/SizeOfTests.cpp Mon Jun 01 21:58:59 2026 +0200 @@ -24,6 +24,11 @@ #include "PrecompiledHeadersUnitTests.h" #include <gtest/gtest.h> +#if defined(__GNUC__) || defined(__clang__) +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + + #include "../../OrthancFramework/Sources/Cache/ICachePageProvider.h" #include "../../OrthancFramework/Sources/Cache/ICacheable.h" #include "../../OrthancFramework/Sources/Cache/LeastRecentlyUsedIndex.h"
