Gromacs
2024.4
|
#include <gromacs/commandline/cmdlineoptionsmodule.h>
Settings to pass information between a CommandLineOptionsModule and generic code that runs it.
Public Member Functions | |
virtual void | setHelpText (const ArrayRef< const char *const > &help)=0 |
Sets the help text for the module from string array. More... | |
virtual void | setBugText (const ArrayRef< const char *const > &bug)=0 |
Set text indicating buggy behaviour of a module from string array. More... | |
virtual void | addOptionsBehavior (const std::shared_ptr< IOptionsBehavior > &behavior)=0 |
Adds an option behavior that performs actions before ICommandLineOptionsModule::run() is called. More... | |
|
pure virtual |
Adds an option behavior that performs actions before ICommandLineOptionsModule::run() is called.
For now, this takes a shared_ptr to make it easier for the caller to keep a reference to the behavior, but the behavior should be treated as owned by the options module after this call.
|
pure virtual |
Set text indicating buggy behaviour of a module from string array.
[in] | bug | String array to set as the bug text. |
std::bad_alloc | if out of memory. |
Formatting for the text is described on Help formatting.
|
pure virtual |
Sets the help text for the module from string array.
[in] | help | String array to set as the description. |
std::bad_alloc | if out of memory. |
Formatting for the help text is described on Help formatting.
Example usage: