]> Creatis software - gdcm.git/blobdiff - src/gdcmDictGroupName.h
Fix mistypings
[gdcm.git] / src / gdcmDictGroupName.h
index b57ed4270156f5fa2b744435f9f35345d027e203..d123c6a4edd4c6f82ff0ce98b3cc27b94c775e49 100644 (file)
@@ -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: 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
                                                                                 
 =========================================================================*/
 
-#ifndef GDCMDICTGROUPNAME_H
-#define GDCMDICTGROUPNAME_H
+#ifndef _GDCMDICTGROUPNAME_H
+#define _GDCMDICTGROUPNAME_H
+
+#include "gdcmRefCounter.h"
 
-#include "gdcmCommon.h"
 #include <map>
 #include <string>
 #include <iostream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 //-----------------------------------------------------------------------------
@@ -33,19 +34,26 @@ typedef std::map<uint16_t, TagName> 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 TagName &GetName(uint16_t group);
 
+protected:
+   DictGroupName();
+   ~DictGroupName();
+
 private:
    DictGroupNameHT groupName;
 };