Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
@gtribello, @GiovanniBussi I have set up a simple module map
It can be used as
PLMD::getModuleMap().at("actionName")
1 to return the name of the module that includes that action (even if the module is not active in the current installation)for 2.10 it is possible to add also an extra function that returns a
std::optional
with the module name to not doing the.count("actionname")
before calling the at (that may throw), sincestd::optional
is c++17Since regex are scary I put a link to a site tha visualize the one used in the new maketool script
The new maketool script uses pure bash, I think there should not be problem between bash versions for the regex that I used, and I used pure bash to avoid having the user to install gawk or perl
I do not know if you like the requirements for the
.inc
fileTarget release
I would like my code to appear in release 2.9
Type of contribution
Copyright
COPYRIGHT
file with the correct license information. Code should be released under an open source license. I also used the commandcd src && ./header.sh mymodulename
in order to make sure the headers of the module are correct.Tests
Footnotes
operator[]
has noconst
overloads forstd::map
andstd::unordered_map
↩