From 390d4587ee5db156149ebe1819f14fecf8c8f0af Mon Sep 17 00:00:00 2001 From: Thomas Feuvrier <thomas.feuvrier@c-s.fr> Date: Thu, 9 Apr 2009 18:02:55 +0200 Subject: [PATCH] STYLE: Remove CAI old testing code source files --- Testing/Code/IO/otbCAIImageIOTestCanRead.cxx | 39 ------------------- Testing/Code/IO/otbCAIImageIOTestCanWrite.cxx | 38 ------------------ 2 files changed, 77 deletions(-) delete mode 100644 Testing/Code/IO/otbCAIImageIOTestCanRead.cxx delete mode 100644 Testing/Code/IO/otbCAIImageIOTestCanWrite.cxx diff --git a/Testing/Code/IO/otbCAIImageIOTestCanRead.cxx b/Testing/Code/IO/otbCAIImageIOTestCanRead.cxx deleted file mode 100644 index 3370d7101d..0000000000 --- a/Testing/Code/IO/otbCAIImageIOTestCanRead.cxx +++ /dev/null @@ -1,39 +0,0 @@ -/*========================================================================= - - Program: ORFEO Toolbox - Language: C++ - Date: $Date$ - Version: $Revision$ - - - Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. - See OTBCopyright.txt 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. - -=========================================================================*/ - -#if defined(_MSC_VER) -#pragma warning ( disable : 4786 ) -#endif - -#include "otbCAIImageIO.h" -#include "itkExceptionObject.h" -#include <iostream> - -int otbCAIImageIOTestCanRead(int argc, char* argv[]) -{ - otb::CAIImageIO::Pointer lCAIImageIO = otb::CAIImageIO::New(); - bool lCanRead = lCAIImageIO->CanReadFile(argv[1]); - if ( lCanRead == false) - { - std::cerr << "Erreur otb::CAIImageIO : impossible d'ouvrir l'image "<<argv[1]<<"."<<std::endl; - return EXIT_FAILURE; - } - - - return EXIT_SUCCESS; -} diff --git a/Testing/Code/IO/otbCAIImageIOTestCanWrite.cxx b/Testing/Code/IO/otbCAIImageIOTestCanWrite.cxx deleted file mode 100644 index 7eb837b555..0000000000 --- a/Testing/Code/IO/otbCAIImageIOTestCanWrite.cxx +++ /dev/null @@ -1,38 +0,0 @@ -/*========================================================================= - - Program: ORFEO Toolbox - Language: C++ - Date: $Date$ - Version: $Revision$ - - - Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. - See OTBCopyright.txt 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. - -=========================================================================*/ - -#if defined(_MSC_VER) -#pragma warning ( disable : 4786 ) -#endif - -#include "otbCAIImageIO.h" -#include "itkExceptionObject.h" -#include <iostream> - -int otbCAIImageIOTestCanWrite(int argc, char* argv[]) -{ - otb::CAIImageIO::Pointer lCAIImageIO = otb::CAIImageIO::New(); - bool lCanRead = lCAIImageIO->CanWriteFile(argv[1]); - if ( lCanRead == false) - { - std::cerr << "Erreur otb::CAIImageIO : impossible de creer l'image "<<argv[1]<<"."<<std::endl; - return EXIT_FAILURE; - } - - return EXIT_SUCCESS; -} -- GitLab