Add a parser accessor to check if a given param long name has beer asked

This commit is contained in:
Johann Dreo 2013-04-03 13:51:33 +02:00
commit e34eb842f1

View file

@ -162,8 +162,18 @@ public:
Checks if _param has been actually entered by the user
*/
virtual bool isItThere(eoParam& _param) const
{ return getValue(_param).first; }
{
return getValue(_param).first;
}
/** Has param been entered by user?
Checks if a given param has been actually entered by the user
*/
virtual bool isItThere( const std::string& name ) const
{
return isItThere(*getParamWithLongName(name));
}
std::string get( const std::string & name) const;