X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FSplitIntoXCoherentDirectories.cxx;fp=Example%2FSplitIntoXCoherentDirectories.cxx;h=17c4c8d50cfa693fb246419cfc0cc1c1bdbbf976;hb=c75a681dc15def736e56e37d0abcd1bdf86caa31;hp=8223ca0296e47cc13edf759a2c6c66706e58246f;hpb=ba28ede6a36f7cbfb7ecb3e0ca3c9bbfe7289afd;p=gdcm.git 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;