Gromacs
2024.4
|
Output format independent processing of options.
Together with code in CommandLineHelpWriter::writeHelp(), this class implements the common logic for writing out the help. An object implementing the IOptionsFormatter must be provided to the constructor, and does the actual formatting that is specific to the output format.
Public Types | |
enum | FilterType { eSelectInputFileOptions, eSelectInputOutputFileOptions, eSelectOutputFileOptions, eSelectOtherOptions } |
Specifies the type of output that formatSelected() produces. | |
Public Member Functions | |
OptionsFilter () | |
Creates a new filtering object. More... | |
void | setShowHidden (bool bShowHidden) |
Sets whether hidden options will be shown. | |
void | formatSelected (FilterType type, IOptionsFormatter *formatter, const Options &options) |
Formats selected options using the formatter. | |
void | visitSection (const OptionSectionInfo §ion) override |
Called for each section. | |
void | visitOption (const OptionInfo &option) override |
Called for each option. | |
|
inline |
Creates a new filtering object.
Does not throw.