From: jpr Date: Fri, 4 Nov 2005 15:29:59 +0000 (+0000) Subject: Dealing first with the most frequently used cases should speed up the process. X-Git-Tag: OpenJPEG.Version1.2~54 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=17d3405e9cd2d1846dd7e6b62b99372cc94e16c2;p=gdcm.git Dealing first with the most frequently used cases should speed up the process. --- diff --git a/src/gdcmDicomDirElement.cxx b/src/gdcmDicomDirElement.cxx index b96ae416..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/10/26 08:04:15 $ - Version: $Revision: 1.41 $ + 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 @@ -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 : " - <