Commit 877d06e5 authored by berenger-bramas's avatar berenger-bramas

Add a parametre to get a str from input arguments.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@327 2616d619-271b-44dc-8df4-d4a8f33a7222
parent c135b81c
......@@ -80,6 +80,15 @@ namespace FParameters{
return StrToOther(argv[position+1],defaultValue);
}
/** Get a str from argv
*/
const char* getStr(const int argc, const char* const * const argv, const char* const inName, const char* const inDefault, const bool caseSensible = false){
const int position = findParameter(argc,argv,inName,caseSensible);
if(position == -1 || position == argc - 1){
return inDefault;
}
return argv[position+1];
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment