#include "gdcmGlobal.h"
#include "gdcmUtil.h"
-#ifdef GDCM_NO_ANSI_STRING_STREAM
-# include <strstream>
-# define ostringstream ostrstream
-# else
-# include <sstream>
-#endif
#include <iomanip> // for std::ios::left, ...
s << " [gdcm::too long for print (" << GetLength() << ") ]";
}
- // Display the UID value (instead of displaying the rough code)
+ // Display the UID value (instead of displaying only the rough code)
if (g == 0x0002) { // Any more to be displayed ?
if ( (e == 0x0010) || (e == 0x0002) )
s << " ==>\t[" << ts->GetValue(v) << "]";
if ( (vr == "UL") || (vr == "US") || (vr == "SL") || (vr == "SS") ) {
if (v == "4294967295") // to avoid troubles in convertion
sprintf (st," x(ffffffff)");
- else
- sprintf(st," x(%x)",(unsigned long)atof(v.c_str()));
+ else {
+ if ( GetLength() !=0 )
+ sprintf(st," x(%x)", atoi(v.c_str()));//FIXME
+ else
+ sprintf(st," ");
+ }
s << st;
}
s << std::endl;