2 //-----------------------------------------------------------------------------
9 # define PUB_DICT_PATH "../Dicts/"
11 #define DICT_TS "dicomTS.dic"
13 //-----------------------------------------------------------------------------
14 // Constructor / Destructor
15 gdcmTS::gdcmTS(void) {
16 std::string filename=gdcmDictSet::BuildDictPath() + std::string(DICT_TS);
17 std::ifstream from(filename.c_str());
18 dbg.Error(!from, "gdcmTS::gdcmTS: can't open dictionary",filename.c_str());
26 from.getline(buff, 1024, ' ');
29 from.getline(buff, 1024, '\n');
43 //-----------------------------------------------------------------------------
46 //-----------------------------------------------------------------------------
48 int gdcmTS::Count(TSKey key) {
52 std::string gdcmTS::GetValue(TSKey key) {
53 if (ts.count(key) == 0)
54 return (GDCM_UNFOUND);
58 //-----------------------------------------------------------------------------
61 //-----------------------------------------------------------------------------
64 //-----------------------------------------------------------------------------