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

ADD: add Application and ParameterList

parent 10f4645f
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.
=========================================================================*/
#include "otbWrapperApplication.h"
namespace otb
{
namespace wrapper
{
Application::Application()
{
m_ParameterList = ParameterList::New();
}
Application::~Application()
{
}
}
}
/*=========================================================================
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 __otbWrapperApplication_h
#define __otbWrapperApplication_h
#include <string>
#include "itkObject.h"
#include "otbWrapperParameterList.h"
namespace otb
{
namespace wrapper
{
class ITK_EXPORT Application : public itk::Object
{
public:
/** Standard class typedefs. */
typedef Application Self;
typedef itk::Object Superclass;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
std::string GetName()
{
return m_Name;
}
std::string GetDescription()
{
return m_Description;
}
ParameterList* GetParameterList();
virtual int Execute() = 0;
protected:
Application();
virtual ~Application();
void SetName(std::string s)
{
m_Name = s;
}
void SetDescription(std::string s)
{
m_Description = s;
}
std::string m_Name;
std::string m_Description;
ParameterList::Pointer m_ParameterList;
};
}
}
#endif // __otbWrapperApplicationOptions_h_
/*=========================================================================
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 __otbWrapperParameterList_h
#define __otbWrapperParameterList_h
#include "itkObject.h"
#include "itkObjectList.h"
#include "otbWrapperParameter.h"
#include <vector>
namespace otb
{
namespace wrapper
{
/**
* \class WrapperParameterList
*/
class ITK_EXPORT ParameterList : public itk::LightObject
{
public:
/** Standard class typedefs. */
typedef ParameterList Self;
typedef itk::Object Superclass;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
void AddParameter();
Parameter* GetParameter(Key& key);
protected:
std::vector<Parameter::Pointer> m_ParameterList;
};
}
}
#endif // __otbWrapperParameter_h
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment