/*========================================================================= Program: gdcm Module: $RCSfile: TestLoadAllDocumentsNoShadow.cxx,v $ Language: C++ Date: $Date: 2008/09/15 15:49:21 $ 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. =========================================================================*/ // TODO : check what's *actually* usefull #include "gdcmDictEntry.h" #include "gdcmDict.h" #include "gdcmDictSet.h" #include "gdcmFile.h" #include "gdcmFileHelper.h" #include "gdcmUtil.h" #include "gdcmCommon.h" #include "gdcmDocEntry.h" #include "gdcmDocEntrySet.h" #include "gdcmDocument.h" #include "gdcmElementSet.h" #include "gdcmSeqEntry.h" #include "gdcmSQItem.h" #include //Generated file: #include "gdcmDataImages.h" int TestLoadAllDocumentsNoShadow(int, char *[]) { int i = 0; while( gdcmDataImages[i] != 0 ) { std::string filename = GDCM_DATA_ROOT; filename += "/"; filename += gdcmDataImages[i]; GDCM_NAME_SPACE::File *file = GDCM_NAME_SPACE::File::New();; file->SetLoadMode( GDCM_NAME_SPACE::LD_NOSHADOW ); file->SetFileName( filename ); std::cout << "File Name [" << filename << "]" << std::endl; if( !file->Load() ) return 1; //file.Print( std::cout ); //just for debug i++; } return 0; }