X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictGroupName.h;h=e75c0704a971567fba3c0514898b23506d3d554c;hb=f7a26bf3c5aeaab693baca4c3dfc95e475bca776;hp=b57ed4270156f5fa2b744435f9f35345d027e203;hpb=f54bad1b76b560edec0df61278f05759ce16f859;p=gdcm.git diff --git a/src/gdcmDictGroupName.h b/src/gdcmDictGroupName.h index b57ed427..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/06 12:49:27 $ - Version: $Revision: 1.2 $ + 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 @@ -33,19 +34,25 @@ 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 TagName &GetName(uint16_t group); +protected: + DictGroupName(); + ~DictGroupName(); + private: DictGroupNameHT groupName; };