]> Creatis software - gdcm.git/blob - src/gdcmTS.h
* add shadow dictionary
[gdcm.git] / src / gdcmTS.h
1 // gdcmTS.h
2 //-----------------------------------------------------------------------------
3 #ifndef GDCMTS_H
4 #define GDCMTS_H
5
6 #include "gdcmCommon.h"
7 #include <map>
8 #include <string>
9 #include <iostream>
10
11 //-----------------------------------------------------------------------------
12 typedef std::string TSKey;
13 typedef std::string TSAtr;
14 typedef std::map<TSKey, TSAtr> TSHT;    // Transfert Syntax Hash Table
15
16 //-----------------------------------------------------------------------------
17 /*
18  * Container for dicom Transfert Syntax Hash Table
19  * \note   This is a singleton
20  */
21 class GDCM_EXPORT gdcmTS {
22 public:
23    gdcmTS(void);
24    ~gdcmTS();
25
26    void Print(std::ostream &os = std::cout);
27
28    int Count(TSKey key);
29    std::string GetValue(TSKey key);
30
31 private:
32    TSHT ts;     
33 };
34
35 //-----------------------------------------------------------------------------
36 #endif