X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmParser.cxx;h=22a77c21648c8c535dd19eeca3107fb3dd088d26;hb=2e69e985f9e76d83fcdacfc3d7e30d9c08bd6e0e;hp=ffbe647e827bcf3770a5b38cd492f42847ce4cfb;hpb=76a33f0c9aee18505341e737d0c37ff7d7e1f9b4;p=gdcm.git diff --git a/src/gdcmParser.cxx b/src/gdcmParser.cxx index ffbe647e..22a77c21 100644 --- a/src/gdcmParser.cxx +++ b/src/gdcmParser.cxx @@ -224,10 +224,12 @@ bool gdcmParser::SetShaDict(DictKey dictName){ * false otherwise. */ bool gdcmParser::IsReadable(void) { - if(filetype==Unknown) + if(filetype==Unknown) { return(false); - if(listEntries.size()<=0) + } + if(listEntries.size()<=0) { return(false); + } return(true); } @@ -1835,7 +1837,9 @@ bool gdcmParser::IsHeaderEntryAnInteger(gdcmHeaderEntry *Entry) { // For *regular* headers, the test is useless.. // lets's print a warning message and go on, // instead of giving up with an error message - std::cout << s.str().c_str() << std::endl; + + //std::cout << s.str().c_str() << std::endl; + // dbg.Error("gdcmParser::IsHeaderEntryAnInteger", // s.str().c_str()); } @@ -2032,7 +2036,10 @@ bool gdcmParser::CheckSwap() { if( (memcmp(entCur, "UL", (size_t)2) == 0) || (memcmp(entCur, "OB", (size_t)2) == 0) || - (memcmp(entCur, "UI", (size_t)2) == 0) ) + (memcmp(entCur, "UI", (size_t)2) == 0) || + (memcmp(entCur, "CS", (size_t)2) == 0) ) // CS, to remove later + // when Write DCM *adds* + // group 0000 { filetype = ExplicitVR; dbg.Verbose(1, "gdcmParser::CheckSwap:", @@ -2044,6 +2051,7 @@ bool gdcmParser::CheckSwap() { dbg.Verbose(1, "gdcmParser::CheckSwap:", "not an explicit Value Representation"); } + if (net2host) { sw = 4321;