1 /*=========================================================================
4 Module: $RCSfile: gdcmGlobal.cxx,v $
6 Date: $Date: 2004/10/08 04:52:55 $
7 Version: $Revision: 1.4 $
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"
24 * \brief Pointer to a container, holding _all_ the Dicom Dictionaries.
26 gdcmDictSet *gdcmGlobal::Dicts = (gdcmDictSet *)0;
30 * \brief Pointer to a hash table containing the 'Value Representations'.
32 gdcmVR *gdcmGlobal::VR = (gdcmVR *)0;
36 * \brief Pointer to a hash table containing the Transfer Syntax codes
37 * and their english description
39 gdcmTS *gdcmGlobal::TS = (gdcmTS *)0;
43 * \brief Pointer to the hash table containing the Dicom Elements
44 * necessary to describe each part of a DICOMDIR
46 gdcmDicomDirElement *gdcmGlobal::ddElem = (gdcmDicomDirElement *)0;
50 * \brief Global container
56 * \brief constructor : populates the various H Tables
58 gdcmGlobal::gdcmGlobal()
60 if (VR || TS || Dicts || ddElem)
62 dbg.Verbose(0, "gdcmGlobal::gdcmGlobal : VR or TS or Dicts already allocated");
64 Dicts = new gdcmDictSet();
67 ddElem = new gdcmDicomDirElement();
72 * \brief canonical destructor
74 gdcmGlobal::~gdcmGlobal()
83 * \brief returns a pointer to the 'Value Representation Table'
85 gdcmVR *gdcmGlobal::GetVR()
91 * \brief returns a pointer to the 'Transfert Syntax Table'
93 gdcmTS *gdcmGlobal::GetTS()
99 * \brief returns a pointer to Dictionaries Table
101 gdcmDictSet *gdcmGlobal::GetDicts()
106 * \ingroup gdcmGlobal
107 * \brief returns a pointer to the DicomDir related elements Table
109 gdcmDicomDirElement *gdcmGlobal::GetDicomDirElements()