X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirElement.cxx;h=d0bc124b95ebd851c98fc5ea881b1f2ffd72de0a;hb=3406c4fd40fed23d938a1c72d985417ce46c3bc0;hp=1757284f4494594566d236ee07bb30fd6796f8ff;hpb=bd4a12d577158f01744a793b456ae022810d4a5c;p=gdcm.git diff --git a/src/gdcmDicomDirElement.cxx b/src/gdcmDicomDirElement.cxx index 1757284f..d0bc124b 100644 --- a/src/gdcmDicomDirElement.cxx +++ b/src/gdcmDicomDirElement.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirElement.cxx,v $ Language: C++ - Date: $Date: 2005/07/11 14:40:40 $ - Version: $Revision: 1.39 $ + Date: $Date: 2005/11/04 15:29:59 $ + Version: $Revision: 1.42 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -51,7 +51,7 @@ DicomDirElement::DicomDirElement() { char buff[1024]; std::string strType; - Element elem; + DicomElement elem; DicomDirType type; while (!from.eof()) @@ -60,20 +60,21 @@ DicomDirElement::DicomDirElement() from.getline(buff, 1024, ' '); strType = buff; - if ( strType == "metaElem" ) - type = DD_META; - else if ( strType == "patientElem" ) - type = DD_PATIENT; - else if ( strType == "studyElem" ) - type = DD_STUDY; + if ( strType == "imageElem" ) + type = DD_IMAGE; else if ( strType == "serieElem" ) type = DD_SERIE; - else if ( strType == "imageElem" ) - type = DD_IMAGE; + else if ( strType == "studyElem" ) + type = DD_STUDY; + else if ( strType == "patientElem" ) + type = DD_PATIENT; + else if ( strType == "metaElem" ) + type = DD_META; else { - gdcmWarningMacro("Unknown type found in the file : " - <::iterator it; + std::list::iterator it; //char greltag[10]; //group element tag TagKey greltag;