From b1f5f7058f0c0fdcd92aeac0ced76f1c9738daa1 Mon Sep 17 00:00:00 2001 From: jpr Date: Wed, 18 Jan 2006 15:45:20 +0000 Subject: [PATCH] Fix stupid syntax like : fh->gdcm::FileHelper::Delete(); to : fh->Delete(); to please M$VC6 --- Example/PhilipsToBrucker.cxx | 16 +++++++--------- Example/PhilipsToBrucker2.cxx | 8 ++++---- Example/PrintDicomDir.cxx | 6 +++--- Example/PrintFile.cxx | 9 ++++----- 4 files changed, 18 insertions(+), 21 deletions(-) diff --git a/Example/PhilipsToBrucker.cxx b/Example/PhilipsToBrucker.cxx index 471512c5..a532b83a 100755 --- a/Example/PhilipsToBrucker.cxx +++ b/Example/PhilipsToBrucker.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PhilipsToBrucker.cxx,v $ Language: C++ - Date: $Date: 2006/01/10 16:04:18 $ - Version: $Revision: 1.4 $ + Date: $Date: 2006/01/18 15:45:20 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -36,7 +36,7 @@ * according to their Patient/Study/Serie/Image characteristics * - fills a single level Directory with *all* the files, * converted into a Brucker-like Dicom, Intags compliant - * + * */ typedef std::map SortedFiles; @@ -92,7 +92,7 @@ int main(int argc, char *argv[]) return 0; } - char *dirNamein; + char *dirNamein; dirNamein = am->ArgMgrGetString("dirin",(char *)"."); char *dirNameout; @@ -172,7 +172,6 @@ int main(int argc, char *argv[]) { std::cout << "Output Directory [" << dirNameout << "]" << " already exists; Used as is." << std::endl; } - std::string strDirNamein(dirNamein); gdcm::DirList dirList(strDirNamein, true); // get recursively the list of files @@ -273,7 +272,7 @@ int main(int argc, char *argv[]) for (j=0;jGetImageDataRaw(); // Don't convert (Gray Pixels + LUT) into (RGB pixels) ?!? fh->SetWriteTypeToDcmExplVR(); fh->Write(fullWriteFilename); - fh->gdcm::FileHelper::Delete(); + fh->Delete(); } } diff --git a/Example/PhilipsToBrucker2.cxx b/Example/PhilipsToBrucker2.cxx index 1fd2dc21..a01221c0 100755 --- a/Example/PhilipsToBrucker2.cxx +++ b/Example/PhilipsToBrucker2.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PhilipsToBrucker2.cxx,v $ Language: C++ - Date: $Date: 2006/01/18 10:21:37 $ - Version: $Revision: 1.2 $ + Date: $Date: 2006/01/18 15:45:21 $ + 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 @@ -522,7 +522,7 @@ int main(int argc, char *argv[]) { std::cout << "Fail to write :[" << fullWriteFilename << "]" << std::endl; - } - fh->gdcm::FileHelper::Delete(); + } + fh->Delete(); } } diff --git a/Example/PrintDicomDir.cxx b/Example/PrintDicomDir.cxx index 28f0a1ab..dc82ec88 100644 --- a/Example/PrintDicomDir.cxx +++ b/Example/PrintDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PrintDicomDir.cxx,v $ Language: C++ - Date: $Date: 2006/01/17 15:36:26 $ - Version: $Revision: 1.31 $ + Date: $Date: 2006/01/18 15:45:21 $ + Version: $Revision: 1.32 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -35,7 +35,7 @@ int main(int argc, char* argv[]) START_USAGE(usage) " \n PrintDicomDir :\n", " Display the tree-like structure of a DICOMDIR File", - " usage: PrintDicomDir filein=fileName [level=n] [debug] ", + " usage: PrintDicomDir filein=fileName [level=n][detail=m][debug] ", " detail = 1 : Patients, 2 : Studies, 3 : Series, 4 : Images ", " 5 : Full Content ", " level = 0,1,2 : depending on user (what he wants to see)", diff --git a/Example/PrintFile.cxx b/Example/PrintFile.cxx index 7e2530fc..1a6f11f3 100644 --- a/Example/PrintFile.cxx +++ b/Example/PrintFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PrintFile.cxx,v $ Language: C++ - Date: $Date: 2005/12/14 09:51:33 $ - Version: $Revision: 1.76 $ + Date: $Date: 2006/01/18 15:45:21 $ + Version: $Revision: 1.77 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -371,7 +371,7 @@ errno = 0; if (ori != "\\" ) std::cout << "Orientation [" << ori << "]" << std::endl; - o->gdcm::Orientation::Delete(); + o->Delete(); //------------------------------ @@ -581,8 +581,7 @@ errno = 0; std::string ori = o->GetOrientation ( f ); if (ori != "\\" ) std::cout << "Orientation [" << ori << "]" << std::endl; - - o->gdcm::Orientation::Delete(); + o->Delete(); //------------------------------- -- 2.46.1