X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmGlobal.h;h=fbe1e4580fbabbb4bcec42e6cf5844ff0811e536;hb=76ac46b16fd92d0fb444f786d4946424d9029315;hp=893af4151528d7b933ed38d25a6a0727b5159c4c;hpb=7f62d92753e6a3e7f4f15093fb959dcb785d6c46;p=gdcm.git diff --git a/src/gdcmGlobal.h b/src/gdcmGlobal.h index 893af415..fbe1e458 100644 --- a/src/gdcmGlobal.h +++ b/src/gdcmGlobal.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmGlobal.h,v $ Language: C++ - Date: $Date: 2005/02/04 16:51:36 $ - Version: $Revision: 1.7 $ + Date: $Date: 2007/08/22 16:14:04 $ + Version: $Revision: 1.13 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,32 +16,42 @@ =========================================================================*/ -#ifndef GDCMGLOBAL_H -#define GDCMGLOBAL_H +#ifndef _GDCMGLOBAL_H_ +#define _GDCMGLOBAL_H_ #include "gdcmCommon.h" -namespace gdcm +namespace GDCM_NAME_SPACE { class DictSet; class VR; class TS; +class DictGroupName; class DicomDirElement; //----------------------------------------------------------------------------- /** * \brief This class contains all globals elements that might be * instanciated only once (singletons). */ +class Dict; class GDCM_EXPORT Global { +friend class DictSet; // to allow setting DefaultPubDict without + // providing anybody an accesor ! public: Global(); ~Global(); - static DictSet *GetDicts(); - static VR *GetVR(); - static TS *GetTS(); - static DicomDirElement *GetDicomDirElements(); + /// \brief returns a pointer to Dictionaries Table + static DictSet *GetDicts() { return Dicts;} + /// \brief returns a pointer to the 'Value Representation Table' + static VR *GetVR(){ return ValRes; } + /// \brief returns a pointer to the 'Transfer Syntax Table' + static TS *GetTS(){ return TranSyn; } + /// \brief returns a pointer to the Group name correspondance table + static DictGroupName *GetDictGroupName() { return GroupName; } + /// \brief returns a pointer to the DicomDir related elements Table + static DicomDirElement *GetDicomDirElements(){ return ddElem; } private: /// Pointer to a container, holding _all_ the Dicom Dictionaries. @@ -51,9 +61,15 @@ private: /// \brief Pointer to a hash table containing the Transfer Syntax codes /// and their english description static TS *TranSyn; + /// \brief Pointer to a hash table containing the Group codes + /// and their english name (from NIH) + static DictGroupName *GroupName; /// \brief Pointer to the hash table containing the Dicom Elements necessary /// to describe each part of a DICOMDIR static DicomDirElement *ddElem; + /// pointer to the Default Public Dictionnary, redundantly store here, + /// in order not to acces the HTable every time! + static Dict *DefaultPubDict; }; } // end namespace gdcm