1 /*=========================================================================
4 Module: $RCSfile: TestVR.cxx,v $
6 Date: $Date: 2005/02/02 10:05:26 $
7 Version: $Revision: 1.7 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
20 int TestVR(int , char *[])
22 gdcm::VR *tempVrDict=0;
23 std::cout << "------ Test Default VR Dictionary : ----------" << std::endl;
24 // Just to improve test coverage:
25 // tempVrDict = new gdcm::Dict("dummyFileNameThatDoesntExist");
26 // tempVrDict->Print();
27 // std::cout << "----- end Test Default VR Dictionary : -----" << std::endl;
32 gdcm::VR *vr = new gdcm::VR();
34 // There should be 16 entries ...
35 vr->Print( std::cout );
37 vr->IsVROfStringRepresentable( "PN" );
38 vr->IsVROfStringRepresentable( "FD" );
40 vr->IsVROfBinaryRepresentable( "FD" );
41 vr->IsVROfBinaryRepresentable( "PN" );
43 vr->IsVROfSequence( "" );
44 vr->IsVROfSequence( "SQ" );