From e30768c5d2c9057ca9be9bdb2d12ff1eb1384539 Mon Sep 17 00:00:00 2001 From: malaterre Date: Sat, 2 Jul 2005 22:51:04 +0000 Subject: [PATCH] ENH: Adding test for benchmark --- Testing/TestAllPrint.cxx | 58 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Testing/TestAllPrint.cxx diff --git a/Testing/TestAllPrint.cxx b/Testing/TestAllPrint.cxx new file mode 100644 index 00000000..983c09eb --- /dev/null +++ b/Testing/TestAllPrint.cxx @@ -0,0 +1,58 @@ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: TestAllPrint.cxx,v $ + Language: C++ + Date: $Date: 2005/07/02 22:51:04 $ + Version: $Revision: 1.1 $ + + 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 "gdcmBinEntry.h" +#include "gdcmDocEntry.h" +#include "gdcmDocEntrySet.h" +#include "gdcmDocument.h" +#include "gdcmElementSet.h" +#include "gdcmSeqEntry.h" +#include "gdcmSQItem.h" +#include "gdcmValEntry.h" + +#include + +//Generated file: +#include "gdcmDataImages.h" + +int TestAllPrint(int, char *[]) +{ + int i = 0; + + while( gdcmDataImages[i] != 0 ) + { + std::string filename = gdcmDataImages[i]; + + gdcm::File file; + file.SetLoadMode( NO_SEQ ); + file.Load(filename); + //file.Print( std::cout ); //just for debug + + i++; + } + return 0; +} -- 2.45.2