]> Creatis software - gdcm.git/blob - src/gdcmGlobal.h
* src/*.cxx *.h Reference to License.htm fixed to License.html.
[gdcm.git] / src / gdcmGlobal.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmGlobal.h,v $
5   Language:  C++
6   Date:      $Date: 2004/09/27 08:39:07 $
7   Version:   $Revision: 1.3 $
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 //-----------------------------------------------------------------------------
28 /**
29  * \brief   This class contains all globals elements that might be
30  *          instanciated only once (singletons).
31  */
32 class GDCM_EXPORT gdcmGlobal {
33 public:
34    gdcmGlobal(void);
35    ~gdcmGlobal();
36
37    static gdcmDictSet *GetDicts(void);
38    static gdcmVR *GetVR(void);
39    static gdcmTS *GetTS(void);
40    static gdcmDicomDirElement *GetDicomDirElements(void);
41
42 private:
43    static gdcmDictSet *Dicts; 
44    static gdcmVR *VR;
45    static gdcmTS *TS; 
46    static gdcmDicomDirElement *ddElem;
47 };
48
49 //-----------------------------------------------------------------------------
50 #endif