]> Creatis software - gdcm.git/blobdiff - src/gdcmGlobal.cxx
* src/gdcmDictGroupName.[h|cxx] : add a correlation between a group (number)
[gdcm.git] / src / gdcmGlobal.cxx
index 09cb9ec0f2962bbd339969d1d3210f70f9b66602..0ced565765c764599a2fd8a81cf8d3e1620f2af8 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmGlobal.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/03/22 11:41:24 $
-  Version:   $Revision: 1.22 $
+  Date:      $Date: 2005/04/05 10:56:25 $
+  Version:   $Revision: 1.23 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -21,6 +21,7 @@
 #include "gdcmDebug.h"
 #include "gdcmVR.h"
 #include "gdcmTS.h"
+#include "gdcmDictGroupName.h"
 #include "gdcmDictSet.h"
 #include "gdcmDicomDirElement.h"
 
@@ -40,10 +41,11 @@ const std::string GDCM_NOTLOADED = "gdcm::NotLoaded";
 const std::string GDCM_UNREAD    = "gdcm::UnRead";
 
 //-----------------------------------------------------------------------------
-DictSet         *Global::Dicts   = (DictSet *)0;
-VR              *Global::ValRes  = (VR *)0;
-TS              *Global::TranSyn = (TS *)0;
-DicomDirElement *Global::ddElem  = (DicomDirElement *)0;
+DictSet         *Global::Dicts     = (DictSet *)0;
+VR              *Global::ValRes    = (VR *)0;
+TS              *Global::TranSyn   = (TS *)0;
+DictGroupName   *Global::GroupName = (DictGroupName *)0;
+DicomDirElement *Global::ddElem    = (DicomDirElement *)0;
 
 //-----------------------------------------------------------------------------
 /**
@@ -63,10 +65,11 @@ Global::Global()
       gdcmWarningMacro( "VR or TS or Dicts already allocated");
       return;
    }
-   Dicts   = new DictSet();
-   ValRes  = new VR();
-   TranSyn = new TS();
-   ddElem  = new DicomDirElement();
+   Dicts     = new DictSet();
+   ValRes    = new VR();
+   TranSyn   = new TS();
+   GroupName = new DictGroupName();
+   ddElem    = new DicomDirElement();
 }
 
 /**
@@ -77,6 +80,7 @@ Global::~Global()
    delete Dicts;
    delete ValRes;
    delete TranSyn;
+   delete GroupName;
    delete ddElem;
 }
 
@@ -106,6 +110,14 @@ TS *Global::GetTS()
    return TranSyn;
 }
 
+/**
+ * \brief   returns a pointer to the Group name correspondance table
+ */
+DictGroupName *Global::GetDictGroupName()
+{
+   return GroupName;
+}
+
 /**
  * \brief   returns a pointer to the DicomDir related elements Table 
  */