X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictGroupName.h;h=bb0d7cc58a3853b3d9a2501f2eb5e50f17288637;hb=eb61ee414dacfa47afb6d1b64bbfb6bac6f86c2f;hp=50954354ff13637faacabeacd21e2a89f4902f28;hpb=3a9e9df62b3198c4f93d1768074b6be828ac7308;p=gdcm.git diff --git a/src/gdcmDictGroupName.h b/src/gdcmDictGroupName.h index 50954354..bb0d7cc5 100644 --- a/src/gdcmDictGroupName.h +++ b/src/gdcmDictGroupName.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDictGroupName.h,v $ Language: C++ - Date: $Date: 2005/04/05 10:56:25 $ - Version: $Revision: 1.1 $ + Date: $Date: 2005/11/28 16:31:23 $ + Version: $Revision: 1.8 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -19,7 +19,8 @@ #ifndef GDCMDICTGROUPNAME_H #define GDCMDICTGROUPNAME_H -#include "gdcmCommon.h" +#include "gdcmRefCounter.h" + #include #include #include @@ -28,24 +29,30 @@ namespace gdcm { //----------------------------------------------------------------------------- -typedef std::string GroupName; /// Group Name Hash Table -typedef std::map DictGroupNameHT; +typedef std::map DictGroupNameHT; //----------------------------------------------------------------------------- /** - * \brief Container for dicom Value Representation Hash Table - * \note This is a singleton + * \brief Container for dicom 'Group Name' Hash Table. + * (formerly NIH defined ACR-NEMA group name) + * \note This is a singleton. */ -class GDCM_EXPORT DictGroupName +class GDCM_EXPORT DictGroupName : public RefCounter { + gdcmTypeMacro(DictGroupName); + public: - DictGroupName(void); - ~DictGroupName(); + static DictGroupName *New() {return new DictGroupName();} - void Print(std::ostream &os = std::cout); + virtual void Print(std::ostream &os = std::cout, + std::string const &indent = "" ); - const GroupName &GetName(uint16_t group); + const TagName &GetName(uint16_t group); + +protected: + DictGroupName(); + ~DictGroupName(); private: DictGroupNameHT groupName;