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 getline(from, name); /// MEMORY LEAK
43 //-----------------------------------------------------------------------------
48 * @param os The output stream to be written to.
50 void gdcmTS::Print(std::ostream &os)
54 for (TSHT::iterator it = ts.begin(); it != ts.end(); ++it)
56 s << "TS : "<<it->first<<" = "<<it->second<<std::endl;
61 //-----------------------------------------------------------------------------
63 int gdcmTS::Count(TSKey key)
68 std::string gdcmTS::GetValue(TSKey key)
70 if (ts.count(key) == 0)
71 return (GDCM_UNFOUND);
75 //-----------------------------------------------------------------------------
78 //-----------------------------------------------------------------------------
81 //-----------------------------------------------------------------------------