1 /*=========================================================================
4 Module: $RCSfile: TestDictGroupName.cxx,v $
6 Date: $Date: 2005/04/05 10:56:24 $
7 Version: $Revision: 1.1 $
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 =========================================================================*/
18 #include "gdcmDictGroupName.h"
19 #include "gdcmGlobal.h"
20 #include "gdcmCommon.h"
22 int TestDictGroupName(int , char *[])
24 gdcm::DictGroupName groupName;
25 groupName.Print( std::cout );
27 std::cout << std::endl;
28 std::cout << "Group : 0x0002 : " << groupName.GetName(0x0002) << " - "
29 << (bool)(groupName.GetName(0x0002)=="Meta Elements") << std::endl;
30 std::cout << "Group : 0x0007 : " << groupName.GetName(0x0007) << " - "
31 << (bool)(groupName.GetName(0x0007)==gdcm::GDCM_UNFOUND) << std::endl;
33 return groupName.GetName( 0x7fe0 ) != "";