From c75a681dc15def736e56e37d0abcd1bdf86caa31 Mon Sep 17 00:00:00 2001 From: jpr Date: Thu, 25 Aug 2011 14:37:05 +0000 Subject: [PATCH] re indent --- Example/SplitIntoDirectories.cxx | 6 +++--- Example/SplitIntoXCoherentDirectories.cxx | 15 +++++++-------- ...plitIntoXCoherentDirectoriesIgnoreSerieUID.cxx | 14 +++++++------- Example/exUnMosaic2.cxx | 8 ++++---- Example/exUnMosaicStack.cxx | 8 +++----- 5 files changed, 24 insertions(+), 27 deletions(-) diff --git a/Example/SplitIntoDirectories.cxx b/Example/SplitIntoDirectories.cxx index 31c4aab4..ecbd89be 100755 --- a/Example/SplitIntoDirectories.cxx +++ b/Example/SplitIntoDirectories.cxx @@ -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; diff --git a/Example/SplitIntoXCoherentDirectories.cxx b/Example/SplitIntoXCoherentDirectories.cxx index 8223ca02..17c4c8d5 100755 --- a/Example/SplitIntoXCoherentDirectories.cxx +++ b/Example/SplitIntoXCoherentDirectories.cxx @@ -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; diff --git a/Example/SplitIntoXCoherentDirectoriesIgnoreSerieUID.cxx b/Example/SplitIntoXCoherentDirectoriesIgnoreSerieUID.cxx index 02845def..228cd407 100755 --- a/Example/SplitIntoXCoherentDirectoriesIgnoreSerieUID.cxx +++ b/Example/SplitIntoXCoherentDirectoriesIgnoreSerieUID.cxx @@ -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; diff --git a/Example/exUnMosaic2.cxx b/Example/exUnMosaic2.cxx index c9b441c6..ce14ce3f 100755 --- a/Example/exUnMosaic2.cxx +++ b/Example/exUnMosaic2.cxx @@ -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. // ============================================================ diff --git a/Example/exUnMosaicStack.cxx b/Example/exUnMosaicStack.cxx index 9e2a39dd..1cb63bd9 100755 --- a/Example/exUnMosaicStack.cxx +++ b/Example/exUnMosaicStack.cxx @@ -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. // ============================================================ -- 2.45.0