]> Creatis software - gdcm.git/blob - src/gdcmGlobal.h
ENH: Adding 'gdcm' namespace. Be nice with me this was a ~13000 lines patch. Also...
[gdcm.git] / src / gdcmGlobal.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmGlobal.h,v $
5   Language:  C++
6   Date:      $Date: 2004/10/12 04:35:46 $
7   Version:   $Revision: 1.4 $
8                                                                                 
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.
12                                                                                 
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.
16                                                                                 
17 =========================================================================*/
18
19 #ifndef GDCMGLOBAL_H
20 #define GDCMGLOBAL_H
21
22 #include "gdcmVR.h"
23 #include "gdcmTS.h"
24 #include "gdcmDictSet.h"
25 #include "gdcmDicomDirElement.h"
26
27 namespace gdcm 
28 {
29
30 //-----------------------------------------------------------------------------
31 /**
32  * \brief   This class contains all globals elements that might be
33  *          instanciated only once (singletons).
34  */
35 class GDCM_EXPORT Global
36 {
37 public:
38    Global();
39    ~Global();
40
41    static DictSet *GetDicts();
42    static VR *GetVR();
43    static TS *GetTS();
44    static DicomDirElement *GetDicomDirElements();
45
46 private:
47    static DictSet *Dicts; 
48    static VR *ValRes;
49    static TS *TranSyn; 
50    static DicomDirElement *ddElem;
51 };
52 } // end namespace gdcm
53
54 //-----------------------------------------------------------------------------
55 #endif