X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FBuildUpDicomDir.cxx;h=f531f2cbeaabee0bf6ea2e1ca78fd25b5d63e7b9;hb=ba78e6c6d47d6db1528e8e88e5ebde7296a26692;hp=5fd9b6ad915d42eceab626cd7dcc546b0979b72d;hpb=978f699b97794e209f9d20e2a33a72404bda54ef;p=gdcm.git diff --git a/Example/BuildUpDicomDir.cxx b/Example/BuildUpDicomDir.cxx index 5fd9b6ad..f531f2cb 100644 --- a/Example/BuildUpDicomDir.cxx +++ b/Example/BuildUpDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: BuildUpDicomDir.cxx,v $ Language: C++ - Date: $Date: 2004/11/16 04:26:17 $ - Version: $Revision: 1.8 $ + Date: $Date: 2004/12/03 20:16:55 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -15,39 +15,14 @@ PURPOSE. See the above copyright notices for more information. =========================================================================*/ -#include -#include "gdcm.h" #include "gdcmDocEntry.h" #include "gdcmDicomDir.h" #include "gdcmDicomDirPatient.h" #include "gdcmDirList.h" #include "gdcmDebug.h" - -#include -#ifdef GDCM_NO_ANSI_STRING_STREAM -# include -# define ostringstream ostrstream -# else -# include -#endif - -#define ostringstream ostrstream - -#include -#include - -// for Directory pb -#if defined(_MSC_VER) || defined(__BORLANDC__) - #include - #include - #include -#else - #include - #include -#endif - -#include -#include +#include "gdcmDicomDirStudy.h" +#include "gdcmDicomDirSerie.h" +#include "gdcmDicomDirImage.h" // =============================================================== /** @@ -71,7 +46,7 @@ int main(int argc, char* argv[]) gdcm::DicomDir *dcmdir; dcmdir = new gdcm::DicomDir(); - printf( "\n------- BuildUpDicomDir: Test Print Meta only -----\n"); + std::cout << "\n------- BuildUpDicomDir: Test Print Meta only -----" << std::endl; ((gdcm::Document *)dcmdir)->Print(); gdcm::DicomDirPatient *p1=dcmdir->NewPatient();