X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictGroupName.h;h=bb0d7cc58a3853b3d9a2501f2eb5e50f17288637;hb=17daf7e7caceddf44e73864ee8d366613a1f0c82;hp=b03c5c61ed3304fa896017d56f09187b3e2c7a01;hpb=cb6cf86b2b3cc6b43d40561fb9552ebd19fdbc99;p=gdcm.git diff --git a/src/gdcmDictGroupName.h b/src/gdcmDictGroupName.h index b03c5c61..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/10/23 15:32:31 $ - Version: $Revision: 1.3 $ + 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 @@ -33,19 +34,26 @@ typedef std::map DictGroupNameHT; //----------------------------------------------------------------------------- /** - * \brief Container for dicom 'Value Representation' Hash Table. + * \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 TagName &GetName(uint16_t group); +protected: + DictGroupName(); + ~DictGroupName(); + private: DictGroupNameHT groupName; };