21 #ifndef otbWrapperCommandLineLauncher_h
22 #define otbWrapperCommandLineLauncher_h
27 #include "itksys/SystemTools.hxx"
30 #include "itkStdStreamLogOutput.h"
34 #include "itkCommand.h"
74 typedef enum { OKPARAM, MISSINGMANDATORYPARAMETER, MISSINGPARAMETERVALUE, WRONGPARAMETERVALUE, INVALIDNUMBEROFVALUE, DEFAULT } ParamResultType;
89 bool Load(
const std::vector<std::string>&
vexp);
itk::SmartPointer< Self > Pointer
This class check the validity of a command line application.
bool ExecuteAndWriteOutput()
Application::Pointer m_Application
bool CheckKeyValidity(std::string &key)
bool CheckParametersPrefix()
bool CheckMissingMandatoryParameter(const std::string ¶mKey) const
itk::MemberCommand< Self > AddProcessCommandType
CommandLineParser::ParseResultType ParseResultType
std::string DisplayParameterHelp(const Parameter::Pointer ¶m, const std::string paramKey, bool longHelp=false)
void DisplayOutputParameters()
bool CheckOutputPathsValidity(const std::string ¶mKey) const
bool ExecuteAndWriteOutputNoCatch()
unsigned int GetMaxKeySize() const
CommandLineLauncher::ParamResultType LoadParameters()
CommandLineParser::Pointer m_Parser
bool Load(const std::vector< std::string > &vexp)
~CommandLineLauncher() override
void DisplayHelp(bool longHelp=false)
itk::StdStreamLogOutput::Pointer m_LogOutput
void LinkWatchers(itk::Object *caller, const itk::EventObject &event)
void CheckUnusedParameter(const std::string ¶mKey) const
void operator=(const CommandLineLauncher &)=delete
itk::SmartPointer< const Self > ConstPointer
WatcherListType m_WatcherList
AddProcessCommandType::Pointer m_AddProcessCommand
std::vector< StandardOneLineFilterWatcher<> * > WatcherListType
itk::SmartPointer< Self > Pointer
std::vector< std::string > m_VExpression
CommandLineLauncher(const CommandLineLauncher &)=delete
itk::SmartPointer< Self > Pointer
itk::SmartPointer< Self > Pointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.