1 /*=========================================================================
4 Module: $RCSfile: gdcmGlobal.cxx,v $
6 Date: $Date: 2005/01/07 19:20:38 $
7 Version: $Revision: 1.9 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
19 #include "gdcmGlobal.h"
21 #include "gdcmDebug.h"
24 #include "gdcmDictSet.h"
25 #include "gdcmDicomDirElement.h"
32 * \brief Pointer to a container, holding _all_ the Dicom Dictionaries.
34 DictSet *Global::Dicts = (DictSet *)0;
38 * \brief Pointer to a hash table containing the 'Value Representations'.
40 VR *Global::ValRes = (VR *)0;
44 * \brief Pointer to a hash table containing the Transfer Syntax codes
45 * and their english description
47 TS *Global::TranSyn = (TS *)0;
51 * \brief Pointer to the hash table containing the Dicom Elements
52 * necessary to describe each part of a DICOMDIR
54 DicomDirElement *Global::ddElem = (DicomDirElement *)0;
58 * \brief Global container
64 * \brief constructor : populates the various H Tables
68 if (ValRes || TranSyn || Dicts || ddElem)
70 gdcmVerboseMacro("Global::Global : VR or TS or Dicts already allocated");
73 Dicts = new DictSet();
76 ddElem = new DicomDirElement();
81 * \brief canonical destructor
92 * \brief returns a pointer to the 'Value Representation Table'
100 * \brief returns a pointer to the 'Transfert Syntax Table'
108 * \brief returns a pointer to Dictionaries Table
110 DictSet *Global::GetDicts()
116 * \brief returns a pointer to the DicomDir related elements Table
118 DicomDirElement *Global::GetDicomDirElements()
122 } // end namespace gdcm