+2004-01-26 Benoit Regrain
+ * Bug fix in the print of hexadecimal representations. Remove long fields
+ in the print and add a third level of print to print them
+
2004-01-23 Benoit Regrain
* Bug fix on field having a VR = 'UI'. Assume that is a string field
* Bug fix on test suite after remove the strip made on not string fields
}
s << "[" << GetName()<< "]";
- s << " [" << d2 << "]";
+ if( (GetLength()<64) || (printLevel>=3) )
+ s << " [" << d2 << "]";
+ else
+ s << " [ gdcm::too long for print (" << GetLength() << ") ]";
// Display the UID value (instead of displaying the rough code)
if (g == 0x0002) { // Any more to be displayed ?
if (v == "4294967295") // to avoid troubles in convertion
sprintf (st," x(ffffffff)");
else
- sprintf(st," x(%x)",atoi(v.c_str()));
+ sprintf(st," x(%x)",(unsigned long)atof(v.c_str()));
s << st;
}
s << std::endl;