Skip to content
Snippets Groups Projects
Commit 3caaf0e0 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

MRG

parents f20aa341 922a1db7
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 __otbWrapperChoiceParameter_h
#define __otbWrapperChoiceParameter_h
#include "otbWrapperParameter.h"
namespace otb
{
namespace Wrapper
{
/** \class ChoiceParameter
* \brief This class represent a string parameter for the wrapper framework
*/
class ChoiceParameter
: public Parameter
{
public:
/** Standard class typedef */
typedef ChoiceParameter 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(ChoiceParameter, Parameter);
void AddChoice( std::string key, Parameter::Pointer param );
protected:
/** Constructor */
ChoiceParameter()
{}
/** Destructor */
~ChoiceParameter()
{}
private:
ChoiceParameter(const ChoiceParameter &); //purposely not implemented
void operator =(const ChoiceParameter&); //purposely not implemented
typedef std::map<std::string, Parameter::Pointer> ChoiceMap;
ChoiceMap m_ChoiceMap;
}; // End class Parameter
} // End namespace Wrapper
} // End namespace otb
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment