]> Creatis software - gdcm.git/blob - src/gdcmTS.cxx
* gdcmPython/Makefile.am now avoids calling the wrappers for the
[gdcm.git] / src / gdcmTS.cxx
1 // gdcmTS.cxx
2
3 #include <stdio.h>
4
5 #include "gdcmTS.h"
6
7 gdcmTS::gdcmTS(void) {
8    ts["1.2.840.10008.1.2"]      = "Implicit VR - Little Endian";  
9    ts["1.2.840.10008.1.2.1"]    = "Explicit VR - Little Endian";         
10    ts["1.2.840.10008.1.2.1.99"] = "Deflated Explicit VR - Little Endian";          
11    ts["1.2.840.10008.1.2.2"]    = "Explicit VR - Big Endian";                 
12    ts["1.2.840.10008.1.2.4.50"] = "JPEG Baseline (Process 1)";       
13    ts["1.2.840.10008.1.2.4.51"] = "JPEG Extended (Process 2 & 4)";            
14    ts["1.2.840.10008.1.2.4.52"] = "JPEG Extended (Process 3 & 5)"; 
15    ts["1.2.840.10008.1.2.4.53"] = "JPEG Spectral Selection, Non-Hierarchical (Process 6 & 8)"; 
16    ts["1.2.840.10008.1.2.4.54"] = "JPEG Spectral Selection, Non-Hierarchical (Process 7 & 9)";        
17    ts["1.2.840.10008.1.2.4.55"] = "JPEG Spectral Selection, Non-Hierarchical (Process 10 & 12)";           
18    ts["1.2.840.10008.1.2.4.56"] = "JPEG Spectral Selection, Non-Hierarchical (Process 11 & 13)";             
19    ts["1.2.840.10008.1.2.4.57"] = "JPEG Baseline (Process 14)";     
20    ts["1.2.840.10008.1.2.4.58"] = "JPEG Baseline (Process 15)";     
21    ts["1.2.840.10008.1.2.4.59"] = "JPEG Spectral Selection, Non-Hierarchical (Process 16 & 18)";           
22    ts["1.2.840.10008.1.2.4.60"] = "JPEG Spectral Selection, Non-Hierarchical (Process 17 & 19)";          
23    ts["1.2.840.10008.1.2.4.61"] = "JPEG Spectral Selection, Non-Hierarchical (Process 20 & 22)";           
24    ts["1.2.840.10008.1.2.4.62"] = "JPEG Spectral Selection, Non-Hierarchical (Process 21 & 23)";          
25    ts["1.2.840.10008.1.2.4.63"] = "JPEG Spectral Selection, Non-Hierarchical (Process 24 & 26)";   
26    ts["1.2.840.10008.1.2.4.64"] = "JPEG Spectral Selection, Non-Hierarchical (Process 25 & 27)";   
27    ts["1.2.840.10008.1.2.4.65"] = "JPEG Lossless, Hierarchical (Process 28)";   
28    ts["1.2.840.10008.1.2.4.66"] = "JPEG Lossless, Hierarchical (Process 29)";   
29    ts["1.2.840.10008.1.2.4.70"] = "Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1])"; 
30    ts["1.2.840.10008.1.2.5"]    = "RLE Lossless";              
31 }
32
33 gdcmTS::~gdcmTS() {
34    ts.clear();
35 }
36
37 int gdcmTS::Count(TSKey key) {
38    return ts.count(key);
39 }
40
41 std::string gdcmTS::GetValue(TSKey key) {
42    return ts[key];
43 }