X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmValEntry.cxx;h=d6d7b89dfa23f7a20debac870ddd46f93eecc639;hb=8d10ccb6794a0f22234983990e2181a24625fbd8;hp=b9823c2cfb99e06c5e432f68b928e134f743d932;hpb=d3b6521bf2c55ffb9850765697b8eeb338c18617;p=gdcm.git diff --git a/src/gdcmValEntry.cxx b/src/gdcmValEntry.cxx index b9823c2c..d6d7b89d 100644 --- a/src/gdcmValEntry.cxx +++ b/src/gdcmValEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmValEntry.cxx,v $ Language: C++ - Date: $Date: 2004/11/10 15:54:45 $ - Version: $Revision: 1.35 $ + Date: $Date: 2004/11/25 15:46:12 $ + Version: $Revision: 1.38 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -76,6 +76,7 @@ void ValEntry::Print(std::ostream & os) TSKey v; std::string d2; + os << "V "; DocEntry::Print(os); if (g == 0xfffe) @@ -108,7 +109,7 @@ void ValEntry::Print(std::ostream & os) { if ( v.length() != 0 ) // for brain damaged headers { - if ( ! isdigit(v[v.length()-1]) ) + if ( ! isdigit((unsigned char)v[v.length()-1]) ) { v.erase(v.length()-1, 1); } @@ -124,7 +125,7 @@ void ValEntry::Print(std::ostream & os) { if ( v.length() != 0 ) // for brain damaged headers { - if ( ! isdigit(v[v.length()-1]) ) + if ( ! isdigit((unsigned char)v[v.length()-1]) ) { v.erase(v.length()-1, 1); } @@ -140,7 +141,7 @@ void ValEntry::Print(std::ostream & os) { if ( v.length() != 0 ) // for brain damaged headers { - if ( ! isdigit(v[v.length()-1]) ) + if ( ! isdigit((unsigned char)v[v.length()-1]) ) { v.erase(v.length()-1, 1); } @@ -176,9 +177,9 @@ void ValEntry::Print(std::ostream & os) /* * \brief canonical Writer */ -void ValEntry::Write(std::ofstream* fp, FileType filetype) +void ValEntry::WriteContent(std::ofstream* fp, FileType filetype) { - DocEntry::Write(fp, filetype); + DocEntry::WriteContent(fp, filetype); //std::cout << "=====================================" << GetVR() << std::endl;