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

Description

Help topic for listing the commands.

Public Member Functions

 CommandsHelpTopic (const CommandLineHelpModuleImpl &helpModule)
 Creates a command list help topic. More...
 
const char * name () const override
 Returns the name of the topic. More...
 
const char * title () const override
 Returns a title for the topic. More...
 
bool hasSubTopics () const override
 Returns whether the topic has any subtopics.
 
const IHelpTopicfindSubTopic (const char *) const override
 Finds a subtopic by name. More...
 
void writeHelp (const HelpWriterContext &context) const override
 Prints the help text for this topic. More...
 

Constructor & Destructor Documentation

gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::CommandsHelpTopic::CommandsHelpTopic ( const CommandLineHelpModuleImpl &  helpModule)
inlineexplicit

Creates a command list help topic.

Parameters
[in]helpModuleHelp module to get module information from.

Does not throw.

Member Function Documentation

const IHelpTopic* gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::CommandsHelpTopic::findSubTopic ( const char *  name) const
inlineoverridevirtual

Finds a subtopic by name.

Parameters
[in]nameName of subtopic to find.
Returns
Pointer to the found subtopic, or NULL if matching topic is not found.

Implements gmx::IHelpTopic.

const char* gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::CommandsHelpTopic::name ( ) const
inlineoverridevirtual

Returns the name of the topic.

This should be a single lowercase word, used to identify the topic. It is not used for the root of the help topic tree.

Implements gmx::IHelpTopic.

const char* gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::CommandsHelpTopic::title ( ) const
inlineoverridevirtual

Returns a title for the topic.

May return NULL, in which case the topic is omitted from normal subtopic lists and no title is printed by the methods provided in helptopic.h.

Implements gmx::IHelpTopic.

void gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::CommandsHelpTopic::writeHelp ( const HelpWriterContext context) const
overridevirtual

Prints the help text for this topic.

Parameters
[in]contextContext object for writing the help.
Exceptions
std::bad_allocif out of memory.
FileIOErroron any I/O error.

Implements gmx::IHelpTopic.


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