]> Creatis software - gdcm.git/blobdiff - Example/ToInTag.cxx
Some updates
[gdcm.git] / Example / ToInTag.cxx
index fbc2cc129703b2bb406d34db7083a07c175cffca..119779d11bfd39ecd50da686a05b454aea94800e 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: ToInTag.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/05/29 10:36:10 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2007/06/22 11:01:57 $
+  Version:   $Revision: 1.14 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -436,7 +436,8 @@ int main(int argc, char *argv[])
       currentFile = it2->second;
        
       fullFilename =  currentFile->GetFileName();
-      lastFilename =  GDCM_NAME_SPACE::Util::GetName( fullFilename ); 
+      lastFilename =  GDCM_NAME_SPACE::Util::GetName( fullFilename );
+      if (verbose) 
       std::cout <<" ------------------------------------------------------------------------------" 
                 << std::endl << " Deal with [" << it2->first << "] : ["<<fullFilename << "]" 
                 << std::endl;
@@ -614,9 +615,9 @@ int main(int argc, char *argv[])
 
          if ( GDCM_NAME_SPACE::Util::DicomStringEqual(modelName,"TrioTim") )  
          {
-            if (seriesDescription.find("90", 0) != -1)
+            if (seriesDescription.find("90", 0) != std::string::npos)
                chSessionIndex = "1";  // 90 deg -> COL
-            else if (seriesDescription.find("0", 0)!= -1)
+            else if (seriesDescription.find("0", 0)!= std::string::npos)
                chSessionIndex = "2";  // 0 deg -> ROW
             else
             {