Mercurial > hg > orthanc
changeset 4859:6f780611fc03
fix orthanc framework abi
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 24 Dec 2021 15:34:33 +0100 |
parents | 8b51d65584f0 |
children | 3e9a76464e8a 6cfb9f142bd0 |
files | OrthancFramework/Sources/Images/NumpyWriter.cpp OrthancFramework/Sources/Images/NumpyWriter.h OrthancServer/UnitTestsSources/SizeOfTests.cpp OrthancServer/UnitTestsSources/SizeOfTests.impl.h |
diffstat | 4 files changed, 11 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Images/NumpyWriter.cpp Fri Dec 24 15:32:08 2021 +0100 +++ b/OrthancFramework/Sources/Images/NumpyWriter.cpp Fri Dec 24 15:34:33 2021 +0100 @@ -233,4 +233,10 @@ } #endif } + + + bool NumpyWriter::IsCompressed() const + { + return compressed_; + } }
--- a/OrthancFramework/Sources/Images/NumpyWriter.h Fri Dec 24 15:32:08 2021 +0100 +++ b/OrthancFramework/Sources/Images/NumpyWriter.h Fri Dec 24 15:34:33 2021 +0100 @@ -60,10 +60,7 @@ void SetCompressed(bool compressed); - bool IsCompressed() const - { - return compressed_; - } + bool IsCompressed() const; static void WriteHeader(ChunkedBuffer& target, unsigned int depth, // Must be "0" for 2D images
--- a/OrthancServer/UnitTestsSources/SizeOfTests.cpp Fri Dec 24 15:32:08 2021 +0100 +++ b/OrthancServer/UnitTestsSources/SizeOfTests.cpp Fri Dec 24 15:34:33 2021 +0100 @@ -112,6 +112,7 @@ #include "../../OrthancFramework/Sources/FileStorage/IStorageArea.h" #include "../../OrthancFramework/Sources/FileStorage/MemoryStorageArea.h" #include "../../OrthancFramework/Sources/FileStorage/StorageAccessor.h" +#include "../../OrthancFramework/Sources/FileStorage/StorageCache.h" #include "../../OrthancFramework/Sources/HttpClient.h" #include "../../OrthancFramework/Sources/HttpServer/BufferHttpSender.h" #include "../../OrthancFramework/Sources/HttpServer/FilesystemHttpHandler.h" @@ -143,6 +144,7 @@ #include "../../OrthancFramework/Sources/Images/ImageTraits.h" #include "../../OrthancFramework/Sources/Images/JpegReader.h" #include "../../OrthancFramework/Sources/Images/JpegWriter.h" +#include "../../OrthancFramework/Sources/Images/NumpyWriter.h" #include "../../OrthancFramework/Sources/Images/PamReader.h" #include "../../OrthancFramework/Sources/Images/PamWriter.h" #include "../../OrthancFramework/Sources/Images/PixelTraits.h"
--- a/OrthancServer/UnitTestsSources/SizeOfTests.impl.h Fri Dec 24 15:32:08 2021 +0100 +++ b/OrthancServer/UnitTestsSources/SizeOfTests.impl.h Fri Dec 24 15:34:33 2021 +0100 @@ -72,6 +72,7 @@ printf("sizeof(::Orthanc::MetricsRegistry::Timer) == %d\n", static_cast<int>(sizeof(::Orthanc::MetricsRegistry::Timer))); printf("sizeof(::Orthanc::MultipartStreamReader) == %d\n", static_cast<int>(sizeof(::Orthanc::MultipartStreamReader))); printf("sizeof(::Orthanc::NullOperationValue) == %d\n", static_cast<int>(sizeof(::Orthanc::NullOperationValue))); + printf("sizeof(::Orthanc::NumpyWriter) == %d\n", static_cast<int>(sizeof(::Orthanc::NumpyWriter))); printf("sizeof(::Orthanc::OrthancException) == %d\n", static_cast<int>(sizeof(::Orthanc::OrthancException))); printf("sizeof(::Orthanc::PamReader) == %d\n", static_cast<int>(sizeof(::Orthanc::PamReader))); printf("sizeof(::Orthanc::PamWriter) == %d\n", static_cast<int>(sizeof(::Orthanc::PamWriter))); @@ -103,6 +104,7 @@ printf("sizeof(::Orthanc::SharedLibrary) == %d\n", static_cast<int>(sizeof(::Orthanc::SharedLibrary))); printf("sizeof(::Orthanc::SharedMessageQueue) == %d\n", static_cast<int>(sizeof(::Orthanc::SharedMessageQueue))); printf("sizeof(::Orthanc::StorageAccessor) == %d\n", static_cast<int>(sizeof(::Orthanc::StorageAccessor))); + printf("sizeof(::Orthanc::StorageCache) == %d\n", static_cast<int>(sizeof(::Orthanc::StorageCache))); printf("sizeof(::Orthanc::StreamBlockReader) == %d\n", static_cast<int>(sizeof(::Orthanc::StreamBlockReader))); printf("sizeof(::Orthanc::StringMatcher) == %d\n", static_cast<int>(sizeof(::Orthanc::StringMatcher))); printf("sizeof(::Orthanc::StringOperationValue) == %d\n", static_cast<int>(sizeof(::Orthanc::StringOperationValue)));