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

ENH: add empty parameter

parent e7029dde
No related branches found
No related tags found
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 __otbWrapperEmptyParameter_h
#define __otbWrapperEmptyParameter_h
#include "otbWrapperParameter.h"
namespace otb
{
namespace Wrapper
{
/** \class EmptyParameter
* \brief This class represent an empty parameter for the wrapper framework (boolean value)
*/
class EmptyParameter
: public Parameter
{
public:
/** Standard class typedef */
typedef EmptyParameter Self;
typedef itk::LightObject Superclass;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
/** Defining ::New() static method */
itkNewMacro(Self);
/** RTTI support */
itkTypeMacro(EmptyParameter, Parameter);
protected:
/** Constructor */
EmptyParameter()
{}
/** Destructor */
~EmptyParameter()
{}
private:
EmptyParameter(const EmptyParameter &); //purposely not implemented
void operator =(const EmptyParameter&); //purposely not implemented
}; // End class Parameter
} // End namespace Wrapper
} // End namespace otb
#endif
......@@ -44,6 +44,7 @@ public:
/** RTTI support */
itkTypeMacro(StringParameter, Parameter);
protected:
/** Constructor */
StringParameter()
......@@ -54,8 +55,8 @@ protected:
{}
private:
StringParameter(const Parameter &); //purposely not implemented
void operator =(const Parameter&); //purposely not implemented
StringParameter(const StringParameter &); //purposely not implemented
void operator =(const StringParameter&); //purposely not implemented
std::string m_Value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment