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

ADD: add string parameter

parent 5269dead
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,11 @@ namespace otb
namespace wrapper
{
/** \class Application
* \brief This class represent an application
*
*
*/
class ITK_EXPORT Application : public itk::Object
{
public:
......@@ -36,6 +41,12 @@ public:
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
/** Defining ::New() static method */
itkNewMacro(Self);
/** RTTI support */
itkTypeMacro(Parameter,itk::LightObject);
std::string GetName()
{
return m_Name;
......
......@@ -67,7 +67,7 @@ public:
itkNewMacro(Self);
/** RTTI support */
itkTypeMacro(Paramter,itk::LightObject);
itkTypeMacro(Parameter,itk::LightObject);
/** Set the parameter name */
itkSetStringMacro(Name);
......
......@@ -19,7 +19,6 @@
#define __otbWrapperParameterList_h
#include "itkObject.h"
#include "itkObjectList.h"
#include "otbWrapperParameter.h"
#include <vector>
......
/*=========================================================================
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 __otbWrapperStringParameter_h
#define __otbWrapperStringParameter_h
#include "otbWrapperParameter.h"
namespace otb
{
namespace Wrapper
{
/** \class StringParameter
* \brief This class represent a string parameter for the wrapper framework
*/
class StringParameter
: public itk::LightObject
{
public:
/** Standard class typedef */
typedef Parameter 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(Parameter,itk::LightObject);
protected:
/** Constructor */
StringParameter()
{}
/** Destructor */
~StringParameter()
{}
private:
StringParameter(const Parameter &); //purposely not implemented
void operator =(const Parameter&); //purposely not implemented
std::string m_Value;
}; // 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