#include <gromacs/commandline/cmdlineoptionsmodule.h>
Inherited by gmx::anonymous_namespace{cmdlineoptionsmodule.cpp}::CommandLineOptionsModuleSettings.
Settings to pass information between a CommandLineOptionsModule and generic code that runs it.
virtual void gmx::ICommandLineOptionsModuleSettings::addOptionsBehavior |
( |
const std::shared_ptr< IOptionsBehavior > & |
behavior | ) |
|
|
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.
virtual void gmx::ICommandLineOptionsModuleSettings::setBugText |
( |
const ArrayRef< const char *const > & |
bug | ) |
|
|
pure virtual |
Set text indicating buggy behaviour of a module from string array.
- Parameters
-
[in] | bug | String array to set as the bug text. |
- Exceptions
-
std::bad_alloc | if out of memory. |
Formatting for the text is described on Help formatting.
virtual void gmx::ICommandLineOptionsModuleSettings::setHelpText |
( |
const ArrayRef< const char *const > & |
help | ) |
|
|
pure virtual |
Sets the help text for the module from string array.
- Parameters
-
[in] | help | String array to set as the description. |
- Exceptions
-
std::bad_alloc | if out of memory. |
Formatting for the help text is described on Help formatting.
Example usage:
const char *const desc[] = {
"This is the description",
"for the options"
};
settings->setHelpText(desc);
The documentation for this class was generated from the following files: