Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
5210414f
Commit
5210414f
authored
Aug 28, 2012
by
BRAMAS Berenger
Browse files
Add a function to test if a user parameter exist
parent
a6a4c7ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Utils/FParameters.hpp
View file @
5210414f
...
...
@@ -79,6 +79,13 @@ namespace FParameters{
return
NotFound
;
}
/** To know if a parameter exist from user format char parameters
*
*/
bool
existParameter
(
const
int
argc
,
const
char
*
const
*
const
argv
,
const
char
*
const
inName
,
const
bool
caseSensible
=
false
){
return
NotFound
!=
findParameter
(
argc
,
argv
,
inName
,
caseSensible
);
}
/** To get a value like :
* getValue(argc,argv, "Toto", 0, false);
* will return 55 if the command contains : -Toto 55
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment