Gromacs
2025-dev-20240906-b7d3419
|
Command line module that provides information about obsolescence.
Prints a message directing the user to a wiki page describing replacement options.
Public Member Functions | |
ObsoleteToolModule (const char *name) | |
Creates an obsolete tool module for a tool with the given name. | |
const char * | name () const override |
Returns the name of the module. | |
const char * | shortDescription () const override |
Returns a one-line description of the module. | |
void | init (gmx::CommandLineModuleSettings *) override |
Initializes the module and provides settings for the runner. More... | |
int | run (int, char *[]) override |
Runs the module with the given arguments. More... | |
void | writeHelp (const gmx::CommandLineHelpContext &) const override |
Prints help for the module. More... | |
|
inlineoverridevirtual |
Initializes the module and provides settings for the runner.
This will be called before run(), and can be used to adjust initialization that the runner does.
This method is currently not called when writing the help.
Implements gmx::ICommandLineModule.
|
inlineoverridevirtual |
Runs the module with the given arguments.
[in] | argc | Number of elements in argv . |
[in] | argv | Command-line arguments. |
unspecified | May throw exceptions to indicate errors. |
0 | on successful termination. |
argv
[0] is the name of the module, i.e., the arguments are as if the module was run as a standalone executable.
Implements gmx::ICommandLineModule.
|
inlineoverridevirtual |
Prints help for the module.
[in] | context | Context object for writing the help. |
std::bad_alloc | if out of memory. |
FileIOError | on any I/O error. |
Note that for MPI-enabled builds, this is called only on the main rank.
Implements gmx::ICommandLineModule.