]> Creatis software - gdcm.git/blob - src/gdcmTS.h
a4e82fe418f561dd85a1f59c1fbe6e481c54e8f1
[gdcm.git] / src / gdcmTS.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmTS.h,v $
5   Language:  C++
6   Date:      $Date: 2005/01/11 00:37:42 $
7   Version:   $Revision: 1.14 $
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
24 #include <map>
25 #include <string>
26 #include <iostream>
27
28 namespace gdcm 
29 {
30 //-----------------------------------------------------------------------------
31 typedef std::string TSKey;
32 typedef std::string TSAtr;
33 typedef std::map<TSKey, TSAtr> TSHT;    // Transfert Syntax Hash Table
34
35 //-----------------------------------------------------------------------------
36 /*
37  * Container for dicom Transfert Syntax Hash Table
38  * \note   This is a singleton
39  */
40 class GDCM_EXPORT TS
41 {
42 public:
43    TS();
44    ~TS();
45
46    void Print(std::ostream &os = std::cout);
47
48    int Count(TSKey const &key);
49    TSAtr const &GetValue(TSKey const &key);
50    bool IsTransferSyntax(TSKey const &key);
51
52 private:
53    TSHT TsMap;
54 };
55 } // end namespace gdcm
56
57 //-----------------------------------------------------------------------------
58 #endif