From ec620ada05a782311e9875faa965459d634957fb Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Sat, 5 Nov 2011 16:41:13 +0100 Subject: [PATCH] ENH: [SWIG] remove commented code in SWIG/itkBase.i --- Code/Wrappers/SWIG/itkBase.i | 40 +----------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/Code/Wrappers/SWIG/itkBase.i b/Code/Wrappers/SWIG/itkBase.i index 0362211e81..bc45111058 100644 --- a/Code/Wrappers/SWIG/itkBase.i +++ b/Code/Wrappers/SWIG/itkBase.i @@ -30,59 +30,21 @@ std::ostringstream oss; oss << "Exception thrown in otbApplication $symname: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); - } catch( ... ) { - SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication $symname" ); - } -} -/* -%exception { - try { - $action - } catch (const std::out_of_range& e) { - SWIG_exception(SWIG_IndexError, e.what()); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); - } catch (...) { + } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication $symname" ); } } -*/ // Some code from STL // Do not wrap if not necessary as it really slows down compilation -//%include <std_iostream.i> -//%include <std_sstream.i> %include <std_string.i> %include <std_vector.i> -//%include "std_list.i" - %template(vectorstring) std::vector< std::string >; -// list cannot be found for Java -//%template(liststring) std::list< std::string >; - -//%template(vectorB) std::vector< bool >; -//%template(vectorUC) std::vector< unsigned char >; -//%template(vectorUS) std::vector< unsigned short >; -//%template(vectorUL) std::vector< unsigned long >; -//%template(vectorSC) std::vector< signed char >; -//%template(vectorSS) std::vector< signed short >; -//%template(vectorSL) std::vector< signed long >; -//%template(vectorF) std::vector< float >; -//%template(vectorD) std::vector< double >; - -//%template(listB) std::list< bool >; -//%template(listUC) std::list< unsigned char >; -//%template(listUS) std::list< unsigned short >; -//%template(listUL) std::list< unsigned long >; -//%template(listSC) std::list< signed char >; -//%template(listSS) std::list< signed short >; -//%template(listSL) std::list< signed long >; -//%template(listF) std::list< float >; -//%template(listD) std::list< double >; - class itkIndent { public: ~itkIndent(); -- GitLab