Skip to content
Snippets Groups Projects
Commit cdf28328 authored by Mohcine Chraibi's avatar Mohcine Chraibi
Browse files

Exit if no method is being used

parent 7c2590a0
Branches
No related tags found
1 merge request!10Resolve "Use Boost Directory Functionality"
Pipeline #14365 passed
......@@ -666,8 +666,7 @@ bool ArgumentParser::ParseIniFile(const string& inifile)
Log->Write("INFO: \tThe instantaneous velocity in the direction of <"+MovementDirection+"> will be calculated over <"+FrameSteps+" frames>" );
}
}
// method A
// Method A
TiXmlElement* xMethod_A=xMainNode->FirstChildElement("method_A");
if(xMethod_A)
{
......@@ -916,6 +915,11 @@ bool ArgumentParser::ParseIniFile(const string& inifile)
}
}
Log->Write("INFO: \tFinish parsing inifile");
if(!(_isMethodA || _isMethodB || _isMethodC || _isMethodD))
{
Log->Write("WARNING: No measurement method enabled. Nothing to do.");
exit(EXIT_SUCCESS);
}
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment