Skip to content
Snippets Groups Projects
Commit 250db179 authored by Julien Malik's avatar Julien Malik
Browse files

MRG

parents 8d143e8c fb5a4aae
Branches
Tags
No related merge requests found
/*=========================================================================
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 __otbWrapperInputImageParameter_h
#define __otbWrapperInputImageParameter_h
#include "otbWrapperParameter.h"
namespace otb
{
namespace Wrapper
{
/** \class InputImageParameter
* \brief This class represents a InputImage parameter
*/
class ITK_EXPORT InputImageParameter : public Parameter
{
public:
/** Standard class typedef */
typedef InputImageParameter Self;
typedef Parameter Superclass;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
/** Defining ::New() static method */
itkNewMacro(Self);
/** RTTI support */
itkTypeMacro(InputImageParameter,Parameter);
protected:
/** Constructor */
InputImageParameter()
{}
/** Destructor */
virtual ~InputImageParameter()
{}
private:
InputImageParameter(const Parameter &); //purposely not implemented
void operator =(const Parameter&); //purposely not implemented
}; // End class InputImage Parameter
} // End namespace Wrapper
} // End namespace otb
#endif
......@@ -34,7 +34,7 @@ class ITK_EXPORT NumericalParameter : public Parameter
public:
/** Standard class typedef */
typedef NumericalParameter Self;
typedef itk::LightObject Superclass;
typedef Parameter Superclass;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
......@@ -42,7 +42,7 @@ public:
itkNewMacro(Self);
/** RTTI support */
itkTypeMacro(NumericalParameter,otb::Wrapper::Parameter);
itkTypeMacro(NumericalParameter,Parameter);
/** Typedef of the scalar type */
typedef T ScalarType;
......
......@@ -37,7 +37,12 @@ ADD_TEST(owTvNumericalParameter ${OTB_WRAPPER_TESTS}
"mykey"
"my description"
)
# Input Image parameter class test
ADD_TEST(owTuInputImageParameter ${OTB_WRAPPER_TESTS}
otbWrapperInputImageParameterNew
)
# Application class test
ADD_TEST(owTuApplication ${OTB_WRAPPER_TESTS}
otbWrapperApplicationNew
......@@ -52,6 +57,7 @@ otbWrapperNumericalParameterTest.cxx
otbWrapperEmptyParameterTest.cxx
otbWrapperApplicationTest.cxx
otbWrapperParameterListTest.cxx
otbWrapperInputImageParameterTest.cxx
)
ADD_EXECUTABLE(otbWrapperTests ${Wrapper_SRCS})
......
/*=========================================================================
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 "otbWrapperInputImageParameter.h"
int otbWrapperInputImageParameterNew(int argc, char* argv[])
{
typedef otb::Wrapper::InputImageParameter InputImageParameterType;
InputImageParameterType::Pointer parameter = InputImageParameterType::New();
return EXIT_SUCCESS;
}
......@@ -33,4 +33,5 @@ void RegisterTests()
REGISTER_TEST(otbWrapperEmptyParameterNew);
REGISTER_TEST(otbWrapperApplicationNew);
REGISTER_TEST(otbWrapperParameterListNew);
REGISTER_TEST(otbWrapperInputImageParameterNew);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment