X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictGroupName.h;h=e75c0704a971567fba3c0514898b23506d3d554c;hb=e70a7e5ba954ce367c4b1bce03f6c7065cd45edf;hp=50954354ff13637faacabeacd21e2a89f4902f28;hpb=3a9e9df62b3198c4f93d1768074b6be828ac7308;p=gdcm.git diff --git a/src/gdcmDictGroupName.h b/src/gdcmDictGroupName.h index 50954354..e75c0704 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/10/26 08:04:15 $ + Version: $Revision: 1.5 $ 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,29 @@ 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 'Value Representation' Hash Table. + * \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;