]> Creatis software - gdcm.git/commitdiff
re indent
authorjpr <jpr>
Thu, 25 Aug 2011 14:37:05 +0000 (14:37 +0000)
committerjpr <jpr>
Thu, 25 Aug 2011 14:37:05 +0000 (14:37 +0000)
Example/SplitIntoDirectories.cxx
Example/SplitIntoXCoherentDirectories.cxx
Example/SplitIntoXCoherentDirectoriesIgnoreSerieUID.cxx
Example/exUnMosaic2.cxx
Example/exUnMosaicStack.cxx

index 31c4aab46bbde700adbeb318658780f52879a948..ecbd89bed757c52bf083a3efae5a28c08c244a6d 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: SplitIntoDirectories.cxx,v $
   Language:  C++
-  Date:      $Date: 2011/04/22 14:39:41 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2011/08/25 14:37:05 $
+  Version:   $Revision: 1.11 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -517,7 +517,7 @@ int main(int argc, char *argv[])
       fullWriteFilename = currentSerieWriteDir + GDCM_NAME_SPACE::GDCM_FILESEPARATOR 
                                          + lastFilename; 
 
-      systemCommand   = "cp \"" + fullFilename + "\"  \"" + fullWriteFilename + "\"";
+      systemCommand   = "cp \"" + fullFilename + "\"  " + fullWriteFilename;
       
       if (listonly)
          std::cout << "[" << systemCommand << "]" << std::endl;         
index 8223ca0296e47cc13edf759a2c6c66706e58246f..17c4c8d50cfa693fb246419cfc0cc1c1bdbbf976 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: SplitIntoXCoherentDirectories.cxx,v $
   Language:  C++
-  Date:      $Date: 2011/04/22 14:39:41 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2011/08/25 14:37:05 $
+  Version:   $Revision: 1.8 $
  
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -262,7 +262,6 @@ int main(int argc, char *argv[])
           // Just not to make too many modif in the code
           //serieUID = "SingleSerie"; // s->GetCurrentSerieUIDFileSetUID();
           serieUID = s->GetCurrentSerieUIDFileSetUID();
-
           GDCM_NAME_SPACE::Util::ReplaceSpecChar(serieUID, rep);
 
           // --- for write
@@ -314,7 +313,7 @@ int main(int argc, char *argv[])
              GDCM_NAME_SPACE::Util::ReplaceSpecChar(xCoherentName, rep);
              // --- for write
              if (write || copy)
-             { 
+             {
                 xCoherentWriteDir = currentSerieWriteDir + GDCM_NAME_SPACE::GDCM_FILESEPARATOR+ xCoherentName;
                // if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(xCoherentWriteDir) )
                 {      
@@ -325,12 +324,12 @@ int main(int argc, char *argv[])
                 }
             } 
             // --- end for write
-    
-            if (ori) 
+
+            if (ori)
                std::cout << "Orientation : ";
-            else if (pos) 
+            else if (pos)
                std::cout << "Position : ";
-            else if (groupelem != 0)    
+            else if (groupelem != 0)
                std::cout << "Tag (" << std::hex << groupelem[0]
                          << "|" << groupelem[1] << ") value : ";
             std::cout << "[" << (*i).first << "]" << std::endl;
index 02845defbfc73f53ae88792dcb41ccb041aec75a..228cd407e3d78edf3e87d4acaef088e86f33c45d 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: SplitIntoXCoherentDirectoriesIgnoreSerieUID.cxx,v $
   Language:  C++
-  Date:      $Date: 2011/04/22 14:39:41 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2011/08/25 14:37:05 $
+  Version:   $Revision: 1.6 $
  
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -292,7 +292,7 @@ int main(int argc, char *argv[])
              GDCM_NAME_SPACE::Util::ReplaceSpecChar(xCoherentName, rep);
              // --- for write
              if (write)
-             { 
+             {
                 xCoherentWriteDir = currentSerieWriteDir + GDCM_NAME_SPACE::GDCM_FILESEPARATOR+ xCoherentName;
                // if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(xCoherentWriteDir) )
                 {      
@@ -303,12 +303,12 @@ int main(int argc, char *argv[])
                 }
             } 
             // --- end for write
-    
-            if (ori) 
+
+            if (ori)
                std::cout << "Orientation : ";
-            else if (pos) 
+            else if (pos)
                std::cout << "Position : ";
-            else if (groupelem != 0)    
+            else if (groupelem != 0)
                std::cout << "Tag (" << std::hex << groupelem[0]
                          << "|" << groupelem[1] << ") value : ";
             std::cout << "[" << (*i).first << "]" << std::endl;
index c9b441c6d72921eaed308cee5554d405b1587918..ce14ce3f5738f64a9453faf3c9d9215320614058 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exUnMosaic2.cxx,v $
   Language:  C++
-  Date:      $Date: 2011/03/31 21:45:08 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2011/08/25 14:37:05 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -107,8 +107,8 @@ int main(int argc, char *argv[])
    size_t dataRawSize    = fh->GetImageDataRawSize();
    
 */
-   
- // ============================================================
+
+// ============================================================
 //   Create a new GDCM_NAME_SPACE::Filehelper, to hold new image.
 // ============================================================
 
index 9e2a39dd8f3489969a09cfd46895730bbe331c4d..1cb63bd98795630d9c15de4d4ffd1a991b52a7f5 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exUnMosaicStack.cxx,v $
   Language:  C++
-  Date:      $Date: 2011/03/31 21:45:08 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2011/08/25 14:37:05 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -100,8 +100,6 @@ int main(int argc, char *argv[])
       }
 
 
-
-
    GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New();
    f->SetLoadMode( GDCM_NAME_SPACE::LD_ALL);
    f->SetFileName( fileName );
@@ -133,7 +131,7 @@ int main(int argc, char *argv[])
    // Get the image data size
    size_t dataRawSize    = fh->GetImageDataRawSize();
    
- // ============================================================
+// ============================================================
 //   Create a new GDCM_NAME_SPACE::Filehelper, to hold new image.
 // ============================================================