# HG changeset patch # User Sebastien Jodogne # Date 1780343939 -7200 # Node ID a6f84df80a28b75decd427b8c4a1f7264cb1083a # Parent 4372fdde043a3bbe6914ec9cab1cc52c1e4c0b87 tagging some classes as deprecated diff -r 4372fdde043a -r a6f84df80a28 OrthancFramework/Sources/Cache/ICachePageProvider.h --- 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 -#include "../IDynamicObject.h" namespace Orthanc { namespace Deprecated { - class ICachePageProvider + class ORTHANC_DEPRECATED(ICachePageProvider) { public: virtual ~ICachePageProvider() diff -r 4372fdde043a -r a6f84df80a28 OrthancFramework/Sources/Cache/ICacheable.h --- 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 namespace Orthanc { - class ICacheable : public boost::noncopyable + class ORTHANC_DEPRECATED(ICacheable) : public boost::noncopyable { public: virtual ~ICacheable() diff -r 4372fdde043a -r a6f84df80a28 OrthancFramework/Sources/Cache/MemoryCache.cpp --- 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 diff -r 4372fdde043a -r a6f84df80a28 OrthancFramework/Sources/Cache/MemoryCache.h --- 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 diff -r 4372fdde043a -r a6f84df80a28 OrthancFramework/Sources/Cache/MemoryObjectCache.cpp --- 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" diff -r 4372fdde043a -r a6f84df80a28 OrthancFramework/Sources/Cache/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__) diff -r 4372fdde043a -r a6f84df80a28 OrthancFramework/Sources/Cache/MemoryStringCache.h --- 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 diff -r 4372fdde043a -r a6f84df80a28 OrthancFramework/Sources/DicomParsing/ParsedDicomCache.cpp --- 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" diff -r 4372fdde043a -r a6f84df80a28 OrthancFramework/Sources/DicomParsing/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; diff -r 4372fdde043a -r a6f84df80a28 OrthancFramework/UnitTestsSources/FromDcmtkTests.cpp --- 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 +#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" diff -r 4372fdde043a -r a6f84df80a28 OrthancFramework/UnitTestsSources/MemoryCacheTests.cpp --- 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 +#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" diff -r 4372fdde043a -r a6f84df80a28 OrthancServer/UnitTestsSources/SizeOfTests.cpp --- 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 +#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"