]> Creatis software - gdcm.git/blobdiff - src/gdcmGlobal.cxx
* Test/ : accelerate tests (it's not very significant accelerations).
[gdcm.git] / src / gdcmGlobal.cxx
index 5f455db33ddda99807ab2e6aaffe07ffa473b0fe..fe6840c72fb9f841851ab4b7558d4503df450c95 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmGlobal.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/02/01 10:29:55 $
-  Version:   $Revision: 1.17 $
+  Date:      $Date: 2005/02/07 14:48:34 $
+  Version:   $Revision: 1.20 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -40,10 +40,10 @@ 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;
+DicomDirElement *Global::ddElem  = (DicomDirElement *)0;
 
 //-----------------------------------------------------------------------------
 /**
@@ -60,7 +60,7 @@ Global::Global()
 {
    if (ValRes || TranSyn || Dicts || ddElem)
    {
-      gdcmVerboseMacro( "VR or TS or Dicts already allocated");
+      gdcmWarningMacro( "VR or TS or Dicts already allocated");
       return;
    }
    Dicts   = new DictSet();
@@ -82,6 +82,14 @@ Global::~Global()
 
 //-----------------------------------------------------------------------------
 // Public
+/**
+ * \brief   returns a pointer to Dictionaries Table 
+ */
+DictSet *Global::GetDicts()
+{
+   return Dicts;
+}
+
 /**
  * \brief   returns a pointer to the 'Value Representation Table' 
  */
@@ -89,6 +97,7 @@ VR *Global::GetVR()
 {
    return ValRes;
 }
+
 /**
  * \brief   returns a pointer to the 'Transfer Syntax Table' 
  */
@@ -96,13 +105,7 @@ TS *Global::GetTS()
 {
    return TranSyn;
 }
-/**
- * \brief   returns a pointer to Dictionaries Table 
- */
-DictSet *Global::GetDicts()
-{
-   return Dicts;
-}
+
 /**
  * \brief   returns a pointer to the DicomDir related elements Table 
  */