diff --git a/Code/Common/otbBonjour.h b/Code/Common/otbBonjour.h deleted file mode 100644 index e9eec5c2bd786e4ab94369f8b6193356d809e53b..0000000000000000000000000000000000000000 --- a/Code/Common/otbBonjour.h +++ /dev/null @@ -1,55 +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. - -=========================================================================*/ -#ifndef __otbBonjour_h -#define __otbBonjour_h - -#include <string> - -namespace otb -{ - -/** \class Bonjour - * \brief Cette classe permet simplement de stocker un message. - * Elle est utilisee pour valider l'installation de l'OTB. - * - */ -class Bonjour -{ -public: - /** Constructeur de base */ - Bonjour() - { - m_message = "Hello OTB user !!!"; - } - /** Destructeur */ - virtual ~Bonjour() throw() {} - - /** Methode pour recuperer le message stocke. */ - virtual std::string getMessage() const - { - return m_message; - } -private: - /** Variable permettant de stocker le message */ - std::string m_message; - -}; - -} // end namespace otb - -#endif diff --git a/Testing/Code/Installation/CMakeLists.txt b/Testing/Code/Installation/CMakeLists.txt deleted file mode 100644 index df4fbd64b1623ae3e6cbeb0fd9203d6c690399b7..0000000000000000000000000000000000000000 --- a/Testing/Code/Installation/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -IF( NOT OTB_DISABLE_CXX_TESTING ) - -SET(BASELINE ${OTB_DATA_ROOT}/Baseline/OTB/Images) -SET(BASELINE_FILES ${OTB_DATA_ROOT}/Baseline/OTB/Files) -SET(INPUTDATA ${OTB_DATA_ROOT}/Input) -#Images de teledetection (grosses images ) -SET(IMAGEDATA ${OTB_DATA_ROOT}/LargeInput ) -SET(TEMP ${OTBTesting_BINARY_DIR}/Temporary) - -ADD_TEST(inTuInstallationTest ${CXX_TEST_PATH}/otbInstallationTest - ${INPUTDATA}/poupees.hdr ) - -ADD_EXECUTABLE(otbInstallationTest otbInstallationTest.cxx ) -TARGET_LINK_LIBRARIES(otbInstallationTest OTBCommon gdal ) - -ENDIF( NOT OTB_DISABLE_CXX_TESTING ) - diff --git a/Testing/Code/Installation/otbInstallationTest.cxx b/Testing/Code/Installation/otbInstallationTest.cxx deleted file mode 100644 index 8796c27555f2d8c38e941e28d61b02ec3d87f728..0000000000000000000000000000000000000000 --- a/Testing/Code/Installation/otbInstallationTest.cxx +++ /dev/null @@ -1,62 +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. - -=========================================================================*/ - -// -// Cet exemple permet de montrer l'utilisation des différentes bibliothèques utilisées par l'OTB -// -#include "otbBonjour.h" - - -/* Includes pour tester FLTK */ -/* -#include <FL/Fl.H> -#include <FL/Fl_Window.H> -*/ - - -/* Includes pour tester VTK */ -/*#include "vtkConeSource.h" -#include "vtkPolyDataMapper.h" -#include "vtkRenderWindow.h" -#include "vtkCamera.h" -#include "vtkActor.h" -#include "vtkRenderer.h" -*/ - -#include <iostream> -#include <string> -#include "otbGDALImageIO.h" - -int main(int argc, char * argv[]) -{ - //OTB - otb::Bonjour lBonjour; - - otb::GDALImageIO::Pointer lGDALImageIO = otb::GDALImageIO::New(); - bool lCanRead = lGDALImageIO->CanReadFile(argv[1]); - if ( lCanRead == false) - { - std::cerr << "Cannot open image file ["<<argv[1] <<"]."); - return EXIT_FAILURE; - } - - - return EXIT_SUCCESS; -} - -