X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmHeaderEntry.cxx;h=c74b8afb8415d246645e534f72dc4806af4d4a9d;hb=d3e997d981d84fece924c52c8b513bccc6cd371a;hp=d11b342f2c3fb3853fdd4cb1a45cdd97bb8beee2;hpb=3dc2328d98ad8d9e9f2b8516f8b04053e9cb9ccf;p=gdcm.git diff --git a/src/gdcmHeaderEntry.cxx b/src/gdcmHeaderEntry.cxx index d11b342f..c74b8afb 100644 --- a/src/gdcmHeaderEntry.cxx +++ b/src/gdcmHeaderEntry.cxx @@ -27,7 +27,6 @@ gdcmHeaderEntry::gdcmHeaderEntry(gdcmDictEntry* in) { //----------------------------------------------------------------------------- // Print - void gdcmHeaderEntry::Print(std::ostream & os) { size_t o; unsigned short int g, e; @@ -44,9 +43,9 @@ void gdcmHeaderEntry::Print(std::ostream & os) { v = GetValue(); o = GetOffset(); sprintf(greltag,"%04x|%04x ",g,e); - d2 = _CreateCleanString(v); // replace non printable characters by '.' s << greltag ; + d2 = _CreateCleanString(v); // replace non printable characters by '.' if (printLevel>=2) { s << "lg : "; lgth = GetReadLength(); @@ -81,23 +80,24 @@ void gdcmHeaderEntry::Print(std::ostream & os) { s << "[" << GetName()<< "]"; s << " [" << d2 << "]"; - // Display the UID value (instead of displaying the rough code) + + // Display the UID value (instead of displaying the rough code) if (g == 0x0002) { // Any more to be displayed ? - if ( (e == 0x0010) || (e == 0x0002) ) - s << " ==>\t[" << ts->GetValue(v) << "]"; + if ( (e == 0x0010) || (e == 0x0002) ) + s << " ==>\t[" << ts->GetValue(v) << "]"; } else { if (g == 0x0008) { - if ( (e == 0x0016) || (e == 0x1150) ) - s << " ==>\t[" << ts->GetValue(v) << "]"; + if ( (e == 0x0016) || (e == 0x1150) ) + s << " ==>\t[" << ts->GetValue(v) << "]"; } - } + } if (e == 0x0000) { // elem 0x0000 --> group length if (v == "4294967295") // to avoid troubles in convertion sprintf (st," x(ffffffff)"); else sprintf(st," x(%08x)",atoi(v.c_str())); s << st; - } + } s << std::endl; os << s.str(); }