]> Creatis software - gdcm.git/blob - src/gdcmTS.h
ENH: Adding 'gdcm' namespace. Be nice with me this was a ~13000 lines patch. Also...
[gdcm.git] / src / gdcmTS.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmTS.h,v $
5   Language:  C++
6   Date:      $Date: 2004/10/12 04:35:48 $
7   Version:   $Revision: 1.10 $
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 GDCMTS_H
20 #define GDCMTS_H
21
22 #include "gdcmCommon.h"
23 #include <map>
24 #include <string>
25 #include <iostream>
26 namespace gdcm 
27 {
28
29 //-----------------------------------------------------------------------------
30 typedef std::string TSKey;
31 typedef std::string TSAtr;
32 typedef std::map<TSKey, TSAtr> TSHT;    // Transfert Syntax Hash Table
33
34 //-----------------------------------------------------------------------------
35 /*
36  * Container for dicom Transfert Syntax Hash Table
37  * \note   This is a singleton
38  */
39 class GDCM_EXPORT TS
40 {
41 public:
42    TS();
43    ~TS();
44
45    void Print(std::ostream &os = std::cout);
46
47    int Count(TSKey key);
48    std::string GetValue(TSKey key);
49
50 private:
51    TSHT ts;
52 };
53 } // end namespace gdcm
54
55 //-----------------------------------------------------------------------------
56 #endif