#include <gdcmTS.h>
Public Member Functions | |
gdcmTS (void) | |
~gdcmTS () | |
void | Print (std::ostream &os=std::cout) |
Print all. | |
int | Count (TSKey key) |
std::string | GetValue (TSKey key) |
Private Attributes | |
TSHT | ts |
|
Definition at line 23 of file gdcmTS.cxx. References gdcmDictSet::BuildDictPath(), dbg, DICT_TS, eatwhite(), gdcmDebug::Error(), and ts.
00024 { 00025 std::string filename=gdcmDictSet::BuildDictPath() + std::string(DICT_TS); 00026 std::ifstream from(filename.c_str()); 00027 dbg.Error(!from, "gdcmTS::gdcmTS: can't open dictionary",filename.c_str()); 00028 00029 char buff[1024]; 00030 std::string key; 00031 std::string name; 00032 00033 while (!from.eof()) { 00034 eatwhite(from); 00035 from.getline(buff, 1024, ' '); 00036 key = buff; 00037 00038 eatwhite(from); 00039 from.getline(buff, 1024, '\n'); 00040 name = buff; 00041 00042 if(key!="") 00043 { 00044 ts[key]=name; 00045 } 00046 } 00047 from.close(); 00048 } |
|
Definition at line 50 of file gdcmTS.cxx. References ts.
00051 { 00052 ts.clear(); 00053 } |
|
Definition at line 75 of file gdcmTS.cxx.
00076 { 00077 return ts.count(key); 00078 } |
|
Definition at line 80 of file gdcmTS.cxx. References GDCM_UNFOUND, ts, and TSKey. Referenced by gdcmHeader::GetTransfertSyntaxName(), and gdcmHeaderEntry::Print().
00081 { 00082 if (ts.count(key) == 0) 00083 return (GDCM_UNFOUND); 00084 return ts[key]; 00085 } |
|
Print all.
Definition at line 62 of file gdcmTS.cxx. References ts.
|
|
Definition at line 32 of file gdcmTS.h. Referenced by Count(), gdcmTS(), GetValue(), Print(), and ~gdcmTS(). |