X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmGlobal.h;h=7be8db87318a6a78c431e573902506ddd03fc6a0;hb=5b89bede4607999aeb8d5b45311e7ee82f9471ef;hp=e17c8ed5941126dee481b4a8b7262f8d68bb4f00;hpb=1bc5ccd72098866fc29ca8a786e8bb6852f388ea;p=gdcm.git diff --git a/src/gdcmGlobal.h b/src/gdcmGlobal.h index e17c8ed5..7be8db87 100644 --- a/src/gdcmGlobal.h +++ b/src/gdcmGlobal.h @@ -1,34 +1,61 @@ -// gdcmGlobal.h -//----------------------------------------------------------------------------- +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmGlobal.h,v $ + Language: C++ + Date: $Date: 2005/02/01 10:29:55 $ + Version: $Revision: 1.6 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ + #ifndef GDCMGLOBAL_H #define GDCMGLOBAL_H -#include "gdcmVR.h" -#include "gdcmTS.h" -#include "gdcmDictSet.h" -#include "gdcmDicomDirElement.h" +#include "gdcmCommon.h" +namespace gdcm +{ +class DictSet; +class VR; +class TS; +class DicomDirElement; //----------------------------------------------------------------------------- /** * \brief This class contains all globals elements that might be * instanciated only once (singletons). */ -class GDCM_EXPORT gdcmGlobal { +class GDCM_EXPORT Global +{ public: - gdcmGlobal(void); - ~gdcmGlobal(); + Global(); + ~Global(); - static gdcmDictSet *GetDicts(void); - static gdcmVR *GetVR(void); - static gdcmTS *GetTS(void); - static gdcmDicomDirElement *GetDicomDirElements(void); + static DictSet *GetDicts(); + static VR *GetVR(); + static TS *GetTS(); + static DicomDirElement *GetDicomDirElements(); private: - static gdcmDictSet *Dicts; - static gdcmVR *VR; - static gdcmTS *TS; - static gdcmDicomDirElement *ddElem; + /// Pointer to a container, holding _all_ the Dicom Dictionaries. + static DictSet *Dicts; + /// Pointer to a hash table containing the 'Value Representations'. + static VR *ValRes; + /// Pointer to a hash table containing the Transfer Syntax codes and their + /// english description + static TS *TranSyn; + /// Pointer to the hash table containing the Dicom Elements necessary + /// to describe each part of a DICOMDIR + static DicomDirElement *ddElem; }; +} // end namespace gdcm //----------------------------------------------------------------------------- #endif