|
Gromacs
2023.4
|
#include <gromacs/commandline/cmdlinemodulemanager.h>
Handle to add content to a group added with CommandLineModuleManager::addModuleGroup().
This class only provides a public interface to construct a module group for CommandLineModuleManager, and has semantics similar to a pointer: copies all point to the same group. The actual state of the group is maintained in an internal implementation class.
Public Member Functions | |
| void | addModule (const char *name) |
| Adds a module to this group. More... | |
| void | addModuleWithDescription (const char *name, const char *description) |
| Adds a module to this group with a custom description. More... | |
| void gmx::CommandLineModuleGroup::addModule | ( | const char * | name | ) |
Adds a module to this group.
| [in] | name | Name of the module. |
| std::bad_alloc | if out of memory. |
This works as addModuleWithDescription(), but uses the short description of the module itself as the description.
| void gmx::CommandLineModuleGroup::addModuleWithDescription | ( | const char * | name, |
| const char * | description | ||
| ) |
Adds a module to this group with a custom description.
| [in] | name | Name of the module. |
| [in] | description | Description of the module in this group. |
| std::bad_alloc | if out of memory. |
name must name a module added into the CommandLineModuleManager. It is possible to add the same module into multiple groups.
1.8.5