/*========================================================================= Program: GDCM (Grassroots DICOM). A DICOM library Copyright (c) 2006-2011 Mathieu Malaterre All rights reserved. See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ #include "gdcmElement.h" #include "gdcmVR.h" struct dummy { unsigned short I[3]; }; // // template struct TagToElement; template<> struct TagToElement<0x0018,0x1624> { using Type = gdcm::Element; }; int TestElement2(int, char *[]) { gdcm::Element ref = {{0,1,2}}; ref.Print(std::cout); //dummy d = {{0,1,2}};//commenting out TagToElement<0x0018,0x1624>::Type t = {{1,2,3}}; t.Print( std::cout ); std::cout << std::endl; gdcm::Element ref2; // = {{1}}; ref2.SetLength(2); ref2.SetValue(1); ref2.Print(std::cout); std::cout << std::endl; gdcm::Element ref3; // = {{1}}; ref3.SetLength(4); ref3.SetValue(1,0); ref3.SetValue(2,1); ref3.Print(std::cout); std::cout << std::endl; return 0; }