Mercurial > hg > orthanc
diff OrthancFramework/Sources/DicomFormat/DicomMap.h @ 5195:32df369198ac
fix /tools/reset crashing when ExtraMainDicomTags were defined
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 28 Mar 2023 10:48:13 +0200 |
parents | 0ea402b4d901 |
children | 138e9d0c08c1 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomFormat/DicomMap.h Sat Mar 25 12:27:21 2023 +0100 +++ b/OrthancFramework/Sources/DicomFormat/DicomMap.h Tue Mar 28 10:48:13 2023 +0200 @@ -31,10 +31,6 @@ #include <map> #include <json/value.h> -#if ORTHANC_BUILD_UNIT_TESTS == 1 -# include <gtest/gtest_prod.h> -#endif - namespace Orthanc { class ORTHANC_PUBLIC DicomMap : public boost::noncopyable @@ -48,10 +44,6 @@ friend class FromDcmtkBridge; friend class ParsedDicomFile; -#if ORTHANC_BUILD_UNIT_TESTS == 1 - friend class DicomMapMainTagsTests; -#endif - Content content_; // Warning: This takes the ownership of "value" @@ -59,12 +51,11 @@ uint16_t element, DicomValue* value); - // used for unit tests only - static void ResetDefaultMainDicomTags(); - public: ~DicomMap(); + static void ResetDefaultMainDicomTags(); + size_t GetSize() const; DicomMap* Clone() const;