2 //-----------------------------------------------------------------------------
10 #include "gdcmDictSet.h"
14 //-----------------------------------------------------------------------------
15 // Constructor / Destructor
18 std::string filename=gdcmDictSet::BuildDictPath() + std::string(DICT_TS);
19 std::ifstream from(filename.c_str());
20 dbg.Error(!from, "gdcmTS::gdcmTS: can't open dictionary",filename.c_str());
28 from.getline(buff, 1024, ' ');
32 from.getline(buff, 1024, '\n');
48 //-----------------------------------------------------------------------------
53 * @param os The output stream to be written to.
55 void gdcmTS::Print(std::ostream &os)
59 for (TSHT::iterator it = ts.begin(); it != ts.end(); ++it)
61 s << "TS : "<<it->first<<" = "<<it->second<<std::endl;
66 //-----------------------------------------------------------------------------
68 int gdcmTS::Count(TSKey key)
73 std::string gdcmTS::GetValue(TSKey key)
75 if (ts.count(key) == 0)
76 return (GDCM_UNFOUND);
80 //-----------------------------------------------------------------------------
83 //-----------------------------------------------------------------------------
86 //-----------------------------------------------------------------------------