Skip to content
Snippets Groups Projects
Commit bca09770 authored by Stéphane Albert's avatar Stéphane Albert
Browse files

COMP: 1649: Added extern template definitions for...

COMP: 1649: Added extern template definitions for otb::Wrapper::Application::GetParameterInput<>() and ::SetParameterOutputImage<>().
parent 94f81f1b
No related branches found
No related tags found
No related merge requests found
......@@ -823,13 +823,13 @@ public:
void SetParameterImageBase(const std::string & key, ImageBaseType* img, unsigned int idx = 0);
/**
Register all ProcessObject that are linked to parameters :
Register all ProcessObject that are linked to parameters :
\li ParameterType_OutputImage
\li ParameterType_OutputVectorData
Those ProcessObjects are stored in the m_Filters set and are deleted at the
Those ProcessObjects are stored in the m_Filters set and are deleted at the
end of ExecuteAndWriteOutput (if there are only held by the set)
This method can be called just before the end of a DoExecute in a derived
This method can be called just before the end of a DoExecute in a derived
class of Application.
*/
void RegisterPipeline();
......@@ -1043,4 +1043,77 @@ private:
//#endif
namespace otb { namespace Wrapper {
extern template OTBApplicationEngine_EXPORT_TEMPLATE UInt8VectorImageType * Application::GetParameterImage< UInt8VectorImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE Int16VectorImageType * Application::GetParameterImage< Int16VectorImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE UInt16VectorImageType * Application::GetParameterImage< UInt16VectorImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE Int32VectorImageType * Application::GetParameterImage< Int32VectorImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE UInt32VectorImageType * Application::GetParameterImage< UInt32VectorImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE FloatVectorImageType * Application::GetParameterImage< FloatVectorImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE DoubleVectorImageType * Application::GetParameterImage< DoubleVectorImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE ComplexInt16VectorImageType * Application::GetParameterImage< ComplexInt16VectorImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE ComplexInt32VectorImageType * Application::GetParameterImage< ComplexInt32VectorImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE ComplexFloatVectorImageType * Application::GetParameterImage< ComplexFloatVectorImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE ComplexDoubleVectorImageType * Application::GetParameterImage< ComplexDoubleVectorImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE UInt8RGBImageType * Application::GetParameterImage< UInt8RGBImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE UInt8RGBAImageType * Application::GetParameterImage< UInt8RGBAImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE UInt8ImageType * Application::GetParameterImage< UInt8ImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE Int16ImageType * Application::GetParameterImage< Int16ImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE UInt16ImageType * Application::GetParameterImage< UInt16ImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE Int32ImageType * Application::GetParameterImage< Int32ImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE UInt32ImageType * Application::GetParameterImage< UInt32ImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE FloatImageType * Application::GetParameterImage< FloatImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE DoubleImageType * Application::GetParameterImage< DoubleImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE ComplexInt16ImageType * Application::GetParameterImage< ComplexInt16ImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE ComplexInt32ImageType * Application::GetParameterImage< ComplexInt32ImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE ComplexFloatImageType * Application::GetParameterImage< ComplexFloatImageType >( std::string );
extern template OTBApplicationEngine_EXPORT_TEMPLATE ComplexDoubleImageType * Application::GetParameterImage< ComplexDoubleImageType >( std::string );
//
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt8VectorImageType >( std::string, UInt8VectorImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< Int16VectorImageType >( std::string, Int16VectorImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt16VectorImageType >( std::string, UInt16VectorImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< Int32VectorImageType >( std::string, Int32VectorImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt32VectorImageType >( std::string, UInt32VectorImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< FloatVectorImageType >( std::string, FloatVectorImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< DoubleVectorImageType >( std::string, DoubleVectorImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexInt16VectorImageType >( std::string, ComplexInt16VectorImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexInt32VectorImageType >( std::string, ComplexInt32VectorImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexFloatVectorImageType >( std::string, ComplexFloatVectorImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexDoubleVectorImageType >( std::string, ComplexDoubleVectorImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt8RGBImageType >( std::string, UInt8RGBImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt8RGBAImageType >( std::string, UInt8RGBAImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt8ImageType >( std::string, UInt8ImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< Int16ImageType >( std::string, Int16ImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt16ImageType >( std::string, UInt16ImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< Int32ImageType >( std::string, Int32ImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt32ImageType >( std::string, UInt32ImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< FloatImageType >( std::string, FloatImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< DoubleImageType >( std::string, DoubleImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexInt16ImageType >( std::string, ComplexInt16ImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexInt32ImageType >( std::string, ComplexInt32ImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexFloatImageType >( std::string, ComplexFloatImageType * );
extern template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexDoubleImageType >( std::string, ComplexDoubleImageType * );
} }
#endif // otbWrapperApplication_h_
......@@ -72,6 +72,76 @@ ExceptionObject(file, line, message, loc)
namespace Wrapper
{
template OTBApplicationEngine_EXPORT_TEMPLATE UInt8VectorImageType * Application::GetParameterImage< UInt8VectorImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE Int16VectorImageType * Application::GetParameterImage< Int16VectorImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE UInt16VectorImageType * Application::GetParameterImage< UInt16VectorImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE Int32VectorImageType * Application::GetParameterImage< Int32VectorImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE UInt32VectorImageType * Application::GetParameterImage< UInt32VectorImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE FloatVectorImageType * Application::GetParameterImage< FloatVectorImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE DoubleVectorImageType * Application::GetParameterImage< DoubleVectorImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE ComplexInt16VectorImageType * Application::GetParameterImage< ComplexInt16VectorImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE ComplexInt32VectorImageType * Application::GetParameterImage< ComplexInt32VectorImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE ComplexFloatVectorImageType * Application::GetParameterImage< ComplexFloatVectorImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE ComplexDoubleVectorImageType * Application::GetParameterImage< ComplexDoubleVectorImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE UInt8RGBImageType * Application::GetParameterImage< UInt8RGBImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE UInt8RGBAImageType * Application::GetParameterImage< UInt8RGBAImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE UInt8ImageType * Application::GetParameterImage< UInt8ImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE Int16ImageType * Application::GetParameterImage< Int16ImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE UInt16ImageType * Application::GetParameterImage< UInt16ImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE Int32ImageType * Application::GetParameterImage< Int32ImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE UInt32ImageType * Application::GetParameterImage< UInt32ImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE FloatImageType * Application::GetParameterImage< FloatImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE DoubleImageType * Application::GetParameterImage< DoubleImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE ComplexInt16ImageType * Application::GetParameterImage< ComplexInt16ImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE ComplexInt32ImageType * Application::GetParameterImage< ComplexInt32ImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE ComplexFloatImageType * Application::GetParameterImage< ComplexFloatImageType >( std::string );
template OTBApplicationEngine_EXPORT_TEMPLATE ComplexDoubleImageType * Application::GetParameterImage< ComplexDoubleImageType >( std::string );
//
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt8VectorImageType >( std::string, UInt8VectorImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< Int16VectorImageType >( std::string, Int16VectorImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt16VectorImageType >( std::string, UInt16VectorImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< Int32VectorImageType >( std::string, Int32VectorImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt32VectorImageType >( std::string, UInt32VectorImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< FloatVectorImageType >( std::string, FloatVectorImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< DoubleVectorImageType >( std::string, DoubleVectorImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexInt16VectorImageType >( std::string, ComplexInt16VectorImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexInt32VectorImageType >( std::string, ComplexInt32VectorImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexFloatVectorImageType >( std::string, ComplexFloatVectorImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexDoubleVectorImageType >( std::string, ComplexDoubleVectorImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt8RGBImageType >( std::string, UInt8RGBImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt8RGBAImageType >( std::string, UInt8RGBAImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt8ImageType >( std::string, UInt8ImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< Int16ImageType >( std::string, Int16ImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt16ImageType >( std::string, UInt16ImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< Int32ImageType >( std::string, Int32ImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< UInt32ImageType >( std::string, UInt32ImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< FloatImageType >( std::string, FloatImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< DoubleImageType >( std::string, DoubleImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexInt16ImageType >( std::string, ComplexInt16ImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexInt32ImageType >( std::string, ComplexInt32ImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexFloatImageType >( std::string, ComplexFloatImageType * );
template OTBApplicationEngine_EXPORT_TEMPLATE void Application::SetParameterOutputImage< ComplexDoubleImageType >( std::string, ComplexDoubleImageType * );
void Application::SetName( const std::string & name )
{
m_Name = name;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment