X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmSerieHelper.cxx;h=f62883e9c08f4f5b6c67428e41bb0222a47c941b;hb=12a274bc7f2ed75439e0451bb5e9ff2b612e8aa2;hp=136e29b8f44451b489cc0a57b92fc27975afd5bd;hpb=77cbc8232f9308aafb17bde18ef9549be212b741;p=gdcm.git diff --git a/src/gdcmSerieHelper.cxx b/src/gdcmSerieHelper.cxx index 136e29b8..f62883e9 100644 --- a/src/gdcmSerieHelper.cxx +++ b/src/gdcmSerieHelper.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmSerieHelper.cxx,v $ Language: C++ - Date: $Date: 2005/10/17 09:52:41 $ - Version: $Revision: 1.21 $ + Date: $Date: 2005/10/18 08:35:50 $ + Version: $Revision: 1.24 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -27,6 +27,7 @@ #include #include #include +#include //for sscanf namespace gdcm { @@ -105,7 +106,7 @@ void SerieHelper::AddFileName(std::string const &filename) ++it2) { const ExRule &r = *it2; - s = header->GetEntryValue( r.group, r.elem ); + s = header->GetEntryString( r.group, r.elem ); if ( !Util::CompareDicomString(s, r.value.c_str(), r.op) ) { // Argh ! This rule is unmatched; let's just quit @@ -120,7 +121,7 @@ void SerieHelper::AddFileName(std::string const &filename) // Let's add it! // 0020 000e UI REL Series Instance UID - const std::string &uid = header->GetEntryValue (0x0020, 0x000e); + const std::string &uid = header->GetEntryString(0x0020, 0x000e); // if uid == GDCM_UNFOUND then consistently we should find GDCM_UNFOUND // no need here to do anything special @@ -485,11 +486,11 @@ XCoherentFileSetmap SerieHelper::SplitOnPosition(FileList *fileSet) // 0020,0032 : Image Position Patient // 0020,0030 : Image Position (RET) - std::string strImPos = (*it)->GetEntryValue(0x0020,0x0032); + strImPos = (*it)->GetEntryString(0x0020,0x0032); if ( strImPos == GDCM_UNFOUND) { gdcmWarningMacro( "Unfound Image Position Patient (0020,0032)"); - strImPos = (*it)->GetEntryValue(0x0020,0x0030); // For ACR-NEMA images + strImPos = (*it)->GetEntryString(0x0020,0x0030); // For ACR-NEMA images if ( strImPos == GDCM_UNFOUND ) { gdcmWarningMacro( "Unfound Image Position (RET) (0020,0030)"); @@ -558,7 +559,7 @@ XCoherentFileSetmap SerieHelper::SplitOnTagValue(FileList *fileSet, // 0020,0032 : Image Position Patient // 0020,0030 : Image Position (RET) - std::string strTagValue = (*it)->GetEntryValue(group,element); + strTagValue = (*it)->GetEntryString(group,element); if ( CoherentFileSet.count(strTagValue) == 0 ) { @@ -568,7 +569,7 @@ XCoherentFileSetmap SerieHelper::SplitOnTagValue(FileList *fileSet, } // Current Tag value and DICOM header match; add the file: CoherentFileSet[strTagValue]->push_back( (*it) ); - } + } return CoherentFileSet; }