diff --git a/eo/src/utils/eoParser.cpp b/eo/src/utils/eoParser.cpp index 13540292..e97a2a2e 100644 --- a/eo/src/utils/eoParser.cpp +++ b/eo/src/utils/eoParser.cpp @@ -112,6 +112,12 @@ eoParser::eoParser ( unsigned _argc, char **_argv , string _programDescription, } +std::string eoParser::get( const std::string & name) const +{ + return getParamWithLongName( name )->getValue(); +} + + eoParam * eoParser::getParamWithLongName(const std::string& _name) const { typedef std::multimap MultiMapType; diff --git a/eo/src/utils/eoParser.h b/eo/src/utils/eoParser.h index 0088ff4f..48b18e91 100644 --- a/eo/src/utils/eoParser.h +++ b/eo/src/utils/eoParser.h @@ -156,6 +156,10 @@ public: virtual bool isItThere(eoParam& _param) const { return getValue(_param).first; } + + std::string get( const std::string & name) const; + + /** * get a handle on a param from its longName *