X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmTS.cxx;h=e6543d8cd4a6f9c49e778380de2a58d356983760;hb=75262e67ec39ad2f359c1efbf9ee805819a8e58a;hp=8946c61a9a95d6b47bbc2fc88ffc3f3bfabc68dc;hpb=0e82725d64f17545e782c18039ced7ea898f8cad;p=gdcm.git diff --git a/src/gdcmTS.cxx b/src/gdcmTS.cxx index 8946c61a..e6543d8c 100644 --- a/src/gdcmTS.cxx +++ b/src/gdcmTS.cxx @@ -3,22 +3,12 @@ #include #include #include -#ifdef GDCM_NO_ANSI_STRING_STREAM -# include -# define ostringstream ostrstream -# else -# include -#endif #include "gdcmTS.h" #include "gdcmDebug.h" #include "gdcmUtil.h" #include "gdcmDictSet.h" -#ifndef PUB_DICT_PATH -# define PUB_DICT_PATH "../Dicts/" -#endif -#define DICT_TS "dicomTS.dic" //----------------------------------------------------------------------------- @@ -34,13 +24,8 @@ gdcmTS::gdcmTS(void) std::string name; while (!from.eof()) { - eatwhite(from); - from.getline(buff, 1024, ' '); - key = buff; - - eatwhite(from); - from.getline(buff, 1024, '\n'); - name = buff; + from >> key; + getline(from, name); /// MEMORY LEAK if(key!="") {