1 /*=========================================================================
4 Module: $RCSfile: gdcmGlobal.cxx,v $
6 Date: $Date: 2004/10/28 18:13:36 $
7 Version: $Revision: 1.6 $
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"
20 #include "gdcmDebug.h"
27 * \brief Pointer to a container, holding _all_ the Dicom Dictionaries.
29 DictSet *Global::Dicts = (DictSet *)0;
33 * \brief Pointer to a hash table containing the 'Value Representations'.
35 VR *Global::ValRes = (VR *)0;
39 * \brief Pointer to a hash table containing the Transfer Syntax codes
40 * and their english description
42 TS *Global::TranSyn = (TS *)0;
46 * \brief Pointer to the hash table containing the Dicom Elements
47 * necessary to describe each part of a DICOMDIR
49 DicomDirElement *Global::ddElem = (DicomDirElement *)0;
53 * \brief Global container
59 * \brief constructor : populates the various H Tables
63 if (ValRes || TranSyn || Dicts || ddElem)
65 dbg.Verbose(0, "Global::Global : VR or TS or Dicts already allocated");
68 Dicts = new DictSet();
71 ddElem = new DicomDirElement();
76 * \brief canonical destructor
87 * \brief returns a pointer to the 'Value Representation Table'
95 * \brief returns a pointer to the 'Transfert Syntax Table'
103 * \brief returns a pointer to Dictionaries Table
105 DictSet *Global::GetDicts()
111 * \brief returns a pointer to the DicomDir related elements Table
113 DicomDirElement *Global::GetDicomDirElements()
117 } // end namespace gdcm