00001 /*========================================================================= 00002 00003 Program: gdcm 00004 Module: $RCSfile: gdcmDictGroupName.h,v $ 00005 Language: C++ 00006 Date: $Date: 2007/08/22 16:14:04 $ 00007 Version: $Revision: 1.10 $ 00008 00009 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de 00010 l'Image). All rights reserved. See Doc/License.txt or 00011 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. 00012 00013 This software is distributed WITHOUT ANY WARRANTY; without even 00014 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00015 PURPOSE. See the above copyright notices for more information. 00016 00017 =========================================================================*/ 00018 00019 #ifndef _GDCMDICTGROUPNAME_H 00020 #define _GDCMDICTGROUPNAME_H 00021 00022 #include "gdcmRefCounter.h" 00023 00024 #include <map> 00025 #include <string> 00026 #include <iostream> 00027 00028 namespace GDCM_NAME_SPACE 00029 { 00030 00031 //----------------------------------------------------------------------------- 00033 typedef std::map<uint16_t, TagName> DictGroupNameHT; 00034 00035 //----------------------------------------------------------------------------- 00041 class GDCM_EXPORT DictGroupName : public RefCounter 00042 { 00043 gdcmTypeMacro(DictGroupName); 00044 00045 public: 00046 static DictGroupName *New() {return new DictGroupName();} 00047 00048 virtual void Print(std::ostream &os = std::cout, 00049 std::string const &indent = "" ); 00050 00051 const TagName &GetName(uint16_t group); 00052 00053 protected: 00054 DictGroupName(); 00055 ~DictGroupName(); 00056 00057 private: 00058 DictGroupNameHT groupName; 00059 }; 00060 } // end namespace gdcm 00061 00062 //----------------------------------------------------------------------------- 00063 #endif