diff --git a/Code/ApplicationEngine/otbWrapperOutputImageParameter.cxx b/Code/ApplicationEngine/otbWrapperOutputImageParameter.cxx index c60c71d2f1a2f82aafaf174f36847cc93e3b7450..ec01e86c774074c8a7d10a1d409e081878d503b0 100644 --- a/Code/ApplicationEngine/otbWrapperOutputImageParameter.cxx +++ b/Code/ApplicationEngine/otbWrapperOutputImageParameter.cxx @@ -192,4 +192,3 @@ OutputImageParameter::HasValue() const } } - diff --git a/Code/ApplicationEngine/otbWrapperOutputImageParameter.h b/Code/ApplicationEngine/otbWrapperOutputImageParameter.h index 408e05d69e77a3e975a396205c484d30b3834b8f..48f90b804ebc62ab07d9d75469b46f00e2b355c6 100644 --- a/Code/ApplicationEngine/otbWrapperOutputImageParameter.h +++ b/Code/ApplicationEngine/otbWrapperOutputImageParameter.h @@ -34,7 +34,7 @@ class ITK_EXPORT OutputImageParameter : public Parameter { public: /** Standard class typedef */ - typedef OutputImageParameter Self; + typedef OutputImageParameter Self; typedef Parameter Superclass; typedef itk::SmartPointer<Self> Pointer; typedef itk::SmartPointer<const Self> ConstPointer; @@ -89,8 +89,8 @@ protected: virtual ~OutputImageParameter(); FloatVectorImageType::Pointer m_Image; - std::string m_FileName; - ImagePixelType m_PixelType; + std::string m_FileName; + ImagePixelType m_PixelType; typedef otb::StreamingImageFileWriter<Int8VectorImageType> Int8WriterType; typedef otb::StreamingImageFileWriter<UInt8VectorImageType> UInt8WriterType; diff --git a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx index 33e5aa88bb859263c1eb739209af9435a7f9a0fe..4a27f778558ee87a103f6c98db3df4553532c2b3 100644 --- a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx +++ b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx @@ -116,7 +116,9 @@ CommandLineLauncher::Load() { if( this->LoadPath() == false ) { - std::cerr << "ERROR: At least one specifed path within \""<< m_Parser->GetAttributAsString(m_Parser->GetModulePathKey(), m_Expression)<<"\" is invalid or doesn't exist..." <<std::endl; + std::cerr << "ERROR: At least one specifed path within \"" + << m_Parser->GetAttributAsString(m_Parser->GetModulePathKey(), m_Expression) + <<"\" is invalid or doesn't exist..." <<std::endl; return false; } } @@ -415,9 +417,12 @@ CommandLineLauncher::LoadParameters() } // Single value parameter - if( type == ParameterType_Choice || type == ParameterType_Float || type == ParameterType_Int || type == ParameterType_Radius - || type == ParameterType_Directory || type == ParameterType_String || type == ParameterType_Filename || type == ParameterType_InputComplexImage - || type == ParameterType_InputImage || type == ParameterType_InputVectorData || type == ParameterType_OutputVectorData ) + if( type == ParameterType_Choice || type == ParameterType_Float + || type == ParameterType_Int || type == ParameterType_Radius + || type == ParameterType_Directory || type == ParameterType_String + || type == ParameterType_Filename || type == ParameterType_InputComplexImage + || type == ParameterType_InputImage || type == ParameterType_InputVectorData + || type == ParameterType_OutputVectorData ) { m_Application->SetParameterString( paramKey, values[0] ); } @@ -636,11 +641,15 @@ CommandLineLauncher::DisplayParameterHelp( const Parameter::Pointer & param, con // In the case choice, don't show the enum type. if( type == ParameterType_Choice ) { - oss << "\t Default value: "<< m_Application->GetChoiceKeys(paramKey)[m_Application->GetParameterInt( paramKey )]<< std::endl; + oss << "\t Default value: " + << m_Application->GetChoiceKeys(paramKey)[m_Application->GetParameterInt( paramKey )] + << std::endl; } else if( type == ParameterType_OutputImage ) { - oss << "\t Default value: filename: "<< m_Application->GetParameterAsString( paramKey )<< std::endl; + oss << "\t Default value: filename: " + << m_Application->GetParameterAsString( paramKey ) + << std::endl; oss << "\t pixel type: float"<< std::endl; } else @@ -748,4 +757,3 @@ CommandLineLauncher::CheckKeyValidity() } } - diff --git a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.h b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.h index de361000d300b37eb2b14dba6d09a94cf88e7c0e..47ca17071795eb5992dac8d8dce3cf865d10f711 100644 --- a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.h +++ b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.h @@ -42,9 +42,13 @@ namespace Wrapper * \brief This class check the validity of a command line application. * * To be valid, the expression must be as follow: - * ModuleName --attribut1_Key attrubut1_Value --attribut2_Key attrubut2_Value - * After the attribut key, if the user give several values (expression without \"--\" separated by space), it will automacally be interpreted as a list. - * The module name can be set as the first element of the expression or in the expression with the key --moduleName. + * ModuleName --attribut1_Key attribut1_Value --attribut2_Key + * attribut2_Value + * After the attribut key, if the user give several values (expression + * without \"--\" separated by space), it will automacally be + * interpreted as a list. + * The module name can be set as the first element of the expression + * or in the expression with the key --moduleName. * The exe path have to be set in with the option --modulePath. */ @@ -52,9 +56,9 @@ class ITK_EXPORT CommandLineLauncher : public itk::Object { public: /** Standard class typedefs. */ - typedef CommandLineLauncher Self; - typedef itk::Object Superclass; - typedef itk::SmartPointer<Self> Pointer; + typedef CommandLineLauncher Self; + typedef itk::Object Superclass; + typedef itk::SmartPointer<Self> Pointer; typedef itk::SmartPointer<const Self> ConstPointer; /** Defining ::New() static method */ @@ -65,8 +69,10 @@ public: /** Parse result enum */ typedef CommandLineParser::ParseResultType ParseResultType; - typedef enum { OKPARAM, MISSINGMANDATORYPARAMETER, MISSINGPARAMETERVALUE, WRONGPARAMETERVALUE, INVALIDNUMBEROFVALUE, DEFAULT} ParamResultType; - + typedef enum { OKPARAM, MISSINGMANDATORYPARAMETER, + MISSINGPARAMETERVALUE, WRONGPARAMETERVALUE, + INVALIDNUMBEROFVALUE, DEFAULT} ParamResultType; + /** Filter watcher list type */ typedef std::vector<StandardOneLineFilterWatcher *> WatcherListType; @@ -83,12 +89,14 @@ public: bool Load( const std::string & exp ); /** Launch the process, using the Execute application method - * The method will check if the user asked for help (looking at --help key) before loading parameter and launching process. + * The method will check if the user asked for help (looking at + --help key) before loading parameter and launching process. **/ bool Execute(); /** Launch the process, using the ExecuteAndWriteOutput application method - * The method will check if the user asked for help (looking at --help key) before loading parameter and launching process. + * The method will check if the user asked for help (looking at + --help key) before loading parameter and launching process. */ bool ExecuteAndWriteOutput(); @@ -139,20 +147,18 @@ private: CommandLineLauncher(const CommandLineLauncher &); //purposely not implemented void operator =(const CommandLineLauncher&); //purposely not implemented - std::string m_Path; - - Application::Pointer m_Application; - std::string m_Expression; - CommandLineParser::Pointer m_Parser; - - WatcherListType m_WatcherList; + std::string m_Path; - itk::StdStreamLogOutput::Pointer m_LogOutput; + Application::Pointer m_Application; + std::string m_Expression; + CommandLineParser::Pointer m_Parser; - AddProcessCommandType::Pointer m_AddProcessCommand; + WatcherListType m_WatcherList; - bool m_ReportProgress; + itk::StdStreamLogOutput::Pointer m_LogOutput; + AddProcessCommandType::Pointer m_AddProcessCommand; + bool m_ReportProgress; }; //end class } // end namespace Wrapper