From 759a5e505dc5a6b3b6e02d74242b25345c0d47f7 Mon Sep 17 00:00:00 2001 From: jpr Date: Mon, 22 Aug 2005 11:22:51 +0000 Subject: [PATCH] Remove exBuildUpDicomDir.cxx (TestBuildUpDicomDir.cxx already in Testing) --- Example/exBuildUpDicomDir.cxx | 90 ----------------------------------- 1 file changed, 90 deletions(-) delete mode 100644 Example/exBuildUpDicomDir.cxx diff --git a/Example/exBuildUpDicomDir.cxx b/Example/exBuildUpDicomDir.cxx deleted file mode 100644 index 883d53bb..00000000 --- a/Example/exBuildUpDicomDir.cxx +++ /dev/null @@ -1,90 +0,0 @@ -/*========================================================================= - - Program: gdcm - Module: $RCSfile: exBuildUpDicomDir.cxx,v $ - Language: C++ - Date: $Date: 2005/07/07 17:31:54 $ - Version: $Revision: 1.2 $ - - Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de - l'Image). All rights reserved. See Doc/License.txt or - http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the above copyright notices for more information. - -=========================================================================*/ -#include "gdcmDocEntry.h" -#include "gdcmDicomDir.h" -#include "gdcmDicomDirPatient.h" -#include "gdcmDirList.h" -#include "gdcmDebug.h" -#include "gdcmDicomDirStudy.h" -#include "gdcmDicomDirSerie.h" -#include "gdcmDicomDirImage.h" - -// =============================================================== -/** - * \ingroup Test - * \brief Builds up ex-nihilo a DICOMDIR file - * adding Patient, Study, Serie, Image descriptions - * to an empty gdcmDicomDir occurence - * and writes a file named NewDICOMDIR. - */ - -int main(int argc, char *argv[]) -{ - std::string dirName = "NewDICOMDIR"; - - if ( argc > 2 ) - { - std::cerr << "Usage: " << argv[0] << " [dicomdirname] "; - dirName = argv[1]; - } - - gdcm::DicomDir *dcmdir; - dcmdir = new gdcm::DicomDir(); - - std::cout << "\n------- BuildUpDicomDir: Test Print Meta only -----" - << std::endl; - ((gdcm::Document *)dcmdir)->Print(); - - gdcm::DicomDirPatient *p1=dcmdir->NewPatient(); - p1->SetValEntry("patientONE",0x0010, 0x0010); - - - gdcm::DicomDirPatient *p2=dcmdir->NewPatient(); - p2->SetValEntry("patientTWO",0x0010, 0x0010); - gdcm::DicomDirStudy *s21=p2->NewStudy(); - s21->SetValEntry("StudyDescrTwo.One",0x0008, 0x1030); - gdcm::DicomDirSerie *s211=s21->NewSerie(); - gdcm::DicomDirImage *s2111=s211->NewImage(); - (void)s2111; //not used - - gdcm::DicomDirStudy *s11=p1->NewStudy(); - s11->SetValEntry("StudyDescrOne.One",0x0008, 0x1030); - // Name of the physician reading study - // Header Entry to be created - s11->SetValEntry("Dr Mabuse",0x0008, 0x1060); - - gdcm::DicomDirPatient *p3 = dcmdir->NewPatient(); - p3->SetValEntry("patientTHREE",0x0010, 0x0010); - - std::cout << "\n------- BuildUpDicomDir: Test Print of Patient ONE -----\n"; - p1->Print(); - std::cout << "\n------- BuildUpDicomDir: Test Print of Patient THREE -----\n"; - p3->Print(); - std::cout << "\n------- BuildUpDicomDir: Test Print of Patient TWO -------\n"; - p2->Print(); - std::cout << "\n------- BuildUpDicomDir: Test Full Print-------------------\n"; - dcmdir->SetPrintLevel(-1); - dcmdir->Print(); - - dcmdir->WriteDicomDir( dirName ); - std::cout << std::endl; - - delete dcmdir; - - return 0; -} -- 2.45.1