]> Creatis software - gdcm.git/blob - Testing/TestDictGroupName.cxx
* src/gdcmDictGroupName.[h|cxx] : add a correlation between a group (number)
[gdcm.git] / Testing / TestDictGroupName.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: TestDictGroupName.cxx,v $
5   Language:  C++
6   Date:      $Date: 2005/04/05 10:56:24 $
7   Version:   $Revision: 1.1 $
8                                                                                 
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.
12                                                                                 
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.
16                                                                                 
17 =========================================================================*/
18 #include "gdcmDictGroupName.h"
19 #include "gdcmGlobal.h"
20 #include "gdcmCommon.h"
21
22 int TestDictGroupName(int , char *[])
23 {
24    gdcm::DictGroupName groupName;
25    groupName.Print( std::cout );
26
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;
32
33    return groupName.GetName( 0x7fe0 ) != "";
34 }