X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictGroupName.h;h=d123c6a4edd4c6f82ff0ce98b3cc27b94c775e49;hb=224876ca6cbe71952f2a1d66d9853eca7745d3a0;hp=50954354ff13637faacabeacd21e2a89f4902f28;hpb=3a9e9df62b3198c4f93d1768074b6be828ac7308;p=gdcm.git diff --git a/src/gdcmDictGroupName.h b/src/gdcmDictGroupName.h index 50954354..d123c6a4 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: 2007/08/22 16:14:04 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,36 +16,43 @@ =========================================================================*/ -#ifndef GDCMDICTGROUPNAME_H -#define GDCMDICTGROUPNAME_H +#ifndef _GDCMDICTGROUPNAME_H +#define _GDCMDICTGROUPNAME_H + +#include "gdcmRefCounter.h" -#include "gdcmCommon.h" #include #include #include -namespace gdcm +namespace GDCM_NAME_SPACE { //----------------------------------------------------------------------------- -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;