#endif
#include <iomanip> // for std::ios::left, ...
+
+#define MAX_SIZE_PRINT_ELEMENT_VALUE 10000
+
//-----------------------------------------------------------------------------
// Constructor / Destructor
/**
d2 = _CreateCleanString(v); // replace non printable characters by '.'
if (printLevel>=2) {
s << "lg : ";
- lgth = GetReadLength();
+ lgth = GetReadLength(); // ReadLength, as opposed to UsableLength
if (lgth == 0xffffffff) {
sprintf(st,"x(ffff)"); // I said : "x(ffff)" !
s.setf(std::ios::left);
if (printLevel>=1) {
s.setf(std::ios::left);
s << std::setw(66-GetName().length()) << " ";
- }
+ }
+
+ s << "[" << GetName()<< "]";
+
- s << "[" << GetName()<< "]";
- if( (GetLength()<64) || (printLevel>=3) )
+
+ if( (GetLength()<MAX_SIZE_PRINT_ELEMENT_VALUE) ||
+ (printLevel>=3) ||
+ (d2.find("gdcm::NotLoaded.") < d2.length()) )
s << " [" << d2 << "]";
- else
+ else
s << " [ gdcm::too long for print (" << GetLength() << ") ]";
// Display the UID value (instead of displaying the rough code)