Private implementation class for CommandLineModuleManager.
|
static void | printThanks (FILE *fp) |
| Prints the footer at the end of execution.
|
|
Initializes the implementation class.
- Parameters
-
[in] | binaryName | Name of the running binary (without Gromacs binary suffix or .exe on Windows). |
| programContext | Program information for the running binary. |
Helper method that adds a given module to the module manager.
- Exceptions
-
std::bad_alloc | if out of memory. |
void gmx::CommandLineModuleManager::Impl::ensureHelpModuleExists |
( |
| ) |
|
Creates the help module if it does not yet exist.
- Exceptions
-
std::bad_alloc | if out of memory. |
This method should be called before accessing helpModule_.
CommandLineModuleMap::const_iterator gmx::CommandLineModuleManager::Impl::findModuleByName |
( |
const std::string & |
name | ) |
const |
Finds a module that matches a name.
- Parameters
-
[in] | name | Module name to find. |
- Returns
- Iterator to the found module, or
modules_.end()
if not found.
Does not throw.
Processes command-line options for the wrapper binary.
- Parameters
-
[in,out] | optionsHolder | Common options. |
[in,out] | argc | On input, argc passed to run(). On output, argc to be passed to the module. |
[in,out] | argv | On input, argv passed to run(). On output, argv to be passed to the module. |
- Exceptions
-
- Returns
- The module that should be run.
Handles command-line options that affect the wrapper binary (potentially changing the members of this
in response to the options). Also finds the module that should be run and the arguments that should be passed to it.
Module that implements help for the binary.
The pointed module is owned by the modules_ container.
List of groupings for modules for help output.
Owns the contained module group data objects. CommandLineModuleGroup objects point to the data objects contained here.
Maps module names to module objects.
Owns the contained modules.
The documentation for this class was generated from the following file: