Gromacs
2016.6
|
#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.
Public Member Functions | |
virtual void | setHelpText (const ConstArrayRef< const char * > &help)=0 |
Sets the help text for the 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 |
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: