2 //-----------------------------------------------------------------------------
9 # define PUB_DICT_PATH "../Dicts/"
11 #define DICT_TS "dicomTS.dic"
14 #ifdef GDCM_NO_ANSI_STRING_STREAM
16 # define ostringstream ostrstream
21 //-----------------------------------------------------------------------------
22 // Constructor / Destructor
25 std::string filename=gdcmDictSet::BuildDictPath() + std::string(DICT_TS);
26 std::ifstream from(filename.c_str());
27 dbg.Error(!from, "gdcmTS::gdcmTS: can't open dictionary",filename.c_str());
35 from.getline(buff, 1024, ' ');
39 from.getline(buff, 1024, '\n');
55 //-----------------------------------------------------------------------------
60 * @param os The output stream to be written to.
62 void gdcmTS::Print(std::ostream &os)
66 for (TSHT::iterator it = ts.begin(); it != ts.end(); ++it)
68 s << "TS : "<<it->first<<" = "<<it->second<<std::endl;
73 //-----------------------------------------------------------------------------
75 int gdcmTS::Count(TSKey key)
80 std::string gdcmTS::GetValue(TSKey key)
82 if (ts.count(key) == 0)
83 return (GDCM_UNFOUND);
87 //-----------------------------------------------------------------------------
90 //-----------------------------------------------------------------------------
93 //-----------------------------------------------------------------------------