X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Lib%2FPrePostProcessing%2FitkSTMS_XMLFileParser.hxx;h=191adb356b4928ad9cb49c53e77319e99227c513;hb=06d646fa83dc002ad793814d37004ad72f126ca7;hp=1bb4c27c17ac901e3b246986ac63715da12168f9;hpb=ccb1f0da53c13ed046673dddbd2bca6be10fdef0;p=STMS.git diff --git a/Lib/PrePostProcessing/itkSTMS_XMLFileParser.hxx b/Lib/PrePostProcessing/itkSTMS_XMLFileParser.hxx index 1bb4c27..191adb3 100755 --- a/Lib/PrePostProcessing/itkSTMS_XMLFileParser.hxx +++ b/Lib/PrePostProcessing/itkSTMS_XMLFileParser.hxx @@ -74,6 +74,7 @@ itkSTMS_XMLFileParser::itkSTMS_XMLFileParser() xmlParams.maskImage = ""; xmlParams.outputFolder = ""; xmlParams.outputCommonRoot = ""; + xmlParams.outputCSV = ""; } @@ -108,7 +109,7 @@ void itkSTMS_XMLFileParser::Update() xmlParams.outputImageExtension = DomObject->GetAttribute( "outputImageExtension" ); if ( xmlParams.outputImageExtension == "" ) { - std::cout << std::endl << std::endl << "outputImageExtension not found" << std::endl << std::endl; + std::cout << std::endl << std::endl << "outputImageExtension not set" << std::endl << std::endl; std::exit( EXIT_FAILURE ); } @@ -150,6 +151,13 @@ void itkSTMS_XMLFileParser::Update() std::cout << std::endl << std::endl << "outputCommonRoot not found" << std::endl << std::endl; std::exit( EXIT_FAILURE ); } + + xmlParams.outputCSV = listOutput->GetAttribute( "outputCSV" ); + if ( xmlParams.outputCSV == "" ) + { + std::cout << std::endl << std::endl << "outputCSV not set: no CSV file will be created" << std::endl << std::endl; + } + } } // end of namespace itkSTMS #endif // itkSTMS_XMLFileParser_HXX