- dbg.Error(!from, "gdcmTS::gdcmTS: can't open dictionary",filename.c_str());
-
- //char buff[1024]; //not used
- std::string key;
- std::string name;
-
- while (!from.eof()) {
- from >> key;
- eatwhite(from);
- getline(from, name); /// MEMORY LEAK
-
- if(key!="")
+ if( !from )
+ {
+ dbg.Verbose(2, "TS::TS: can't open dictionary", filename.c_str());
+ FillDefaultTSDict( TsMap );
+ }
+ else
+ {
+ TSKey key;
+ TSAtr name;
+
+ while (!from.eof())