]> Creatis software - gdcm.git/blob - src/gdcmDictGroupName.h
* src/gdcmDictGroupName.[h|cxx] : add a correlation between a group (number)
[gdcm.git] / src / gdcmDictGroupName.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDictGroupName.h,v $
5   Language:  C++
6   Date:      $Date: 2005/04/05 10:56:25 $
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
19 #ifndef GDCMDICTGROUPNAME_H
20 #define GDCMDICTGROUPNAME_H
21
22 #include "gdcmCommon.h"
23 #include <map>
24 #include <string>
25 #include <iostream>
26
27 namespace gdcm 
28 {
29
30 //-----------------------------------------------------------------------------
31 typedef std::string GroupName;
32 /// Group Name Hash Table
33 typedef std::map<uint16_t, GroupName> DictGroupNameHT;
34
35 //-----------------------------------------------------------------------------
36 /**
37  * \brief Container for dicom Value Representation Hash Table
38  * \note   This is a singleton
39  */
40 class GDCM_EXPORT DictGroupName 
41 {
42 public:
43    DictGroupName(void);
44    ~DictGroupName();
45
46    void Print(std::ostream &os = std::cout);
47
48    const GroupName &GetName(uint16_t group);
49
50 private:
51    DictGroupNameHT groupName;
52 };
53 } // end namespace gdcm
54
55 //-----------------------------------------------------------------------------
56 #endif