Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions
gmx::anonymous_namespace{cmdlinehelpwriter.cpp}::OptionsFilter Class Reference
+ Inheritance diagram for gmx::anonymous_namespace{cmdlinehelpwriter.cpp}::OptionsFilter:
+ Collaboration diagram for gmx::anonymous_namespace{cmdlinehelpwriter.cpp}::OptionsFilter:

Description

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 &section) override
 Called for each section.
 
void visitOption (const OptionInfo &option) override
 Called for each option.
 

Constructor & Destructor Documentation

gmx::anonymous_namespace{cmdlinehelpwriter.cpp}::OptionsFilter::OptionsFilter ( )
inline

Creates a new filtering object.

Does not throw.


The documentation for this class was generated from the following file: