comparison OrthancFramework/UnitTestsSources/DicomMapTests.cpp @ 4845:02d77189d8ba received-instance-callback

added ReceivedInstanceCallback + sample C++ plugin
author Alain Mazy <am@osimis.io>
date Thu, 09 Dec 2021 17:22:40 +0100
parents 7053502fbf97
children 43e613a7756b
comparison
equal deleted inserted replaced
4844:55e8fb8e8028 4845:02d77189d8ba
754 ASSERT_TRUE(d > b); 754 ASSERT_TRUE(d > b);
755 ASSERT_TRUE(d > c); 755 ASSERT_TRUE(d > c);
756 ASSERT_FALSE(d > d); 756 ASSERT_FALSE(d > d);
757 } 757 }
758 758
759 TEST(ParsedDicomFile, canIncludeXsVrTags)
760 {
761 Json::Value tags;
762 tags["0028,0034"] = "1\\1"; // PixelAspectRatio
763 tags["0028,1101"] = "256\\0\\16"; // RedPaletteColorLookupTableDescriptor which is declared as xs VR in dicom.dic
764
765 std::unique_ptr<ParsedDicomFile> dicom(ParsedDicomFile::CreateFromJson(tags, DicomFromJsonFlags_DecodeDataUriScheme, ""));
766 // simply make sure it does not throw !
767 }
759 768
760 769
761 #if ORTHANC_SANDBOXED != 1 770 #if ORTHANC_SANDBOXED != 1
762 771
763 #include "../Sources/SystemToolbox.h" 772 #include "../Sources/SystemToolbox.h"