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);
102 bool ExecuteAndWriteOutput();
108 bool BeforeExecute();
111 void DisplayHelp(
bool longHelp =
false);
133 bool LoadApplication();
142 std::string DisplayParameterHelp(
const Parameter::Pointer& param,
const std::string paramKey,
bool longHelp =
false);
148 bool CheckParametersPrefix();
151 bool CheckKeyValidity(std::string& key);
154 void DisplayOutputParameters();
157 void LinkWatchers(itk::Object* caller,
const itk::EventObject& event);
160 void DeleteWatcherList();
163 unsigned int GetMaxKeySize()
const;
167 bool CheckMissingMandatoryParameter(
const std::string& paramKey)
const;
170 void CheckUnusedParameter(
const std::string& paramKey)
const;
174 bool CheckOutputPathsValidity(
const std::string& paramKey)
const;
182 bool ExecuteAndWriteOutputNoCatch();
204 #endif // otbWrapperCommandLineLauncher_h_