Gromacs
2018.7
|
#include <gromacs/onlinehelp/ihelptopic.h>
Provides a single online help topic.
Implementations of these methods should not throw, except that writeHelp() is allowed to throw on out-of-memory or I/O errors since those it cannot avoid.
Header helptopic.h contains classes that implement this interface and make it simple to write concrete help topic classes.
Public Member Functions | |
virtual const char * | name () const =0 |
Returns the name of the topic. More... | |
virtual const char * | title () const =0 |
Returns a title for the topic. More... | |
virtual bool | hasSubTopics () const =0 |
Returns whether the topic has any subtopics. | |
virtual const IHelpTopic * | findSubTopic (const char *name) const =0 |
Finds a subtopic by name. More... | |
virtual void | writeHelp (const HelpWriterContext &context) const =0 |
Prints the help text for this topic. More... | |
|
pure virtual |
Finds a subtopic by name.
[in] | name | Name of subtopic to find. |
Implemented in gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::ModuleHelpTopic, gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::CommandsHelpTopic, gmx::AbstractCompositeHelpTopic, and gmx::AbstractSimpleHelpTopic.
|
pure virtual |
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.
Implemented in gmx::anonymous_namespace{selhelp.cpp}::KeywordDetailsHelpTopic, gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::ModuleHelpTopic, gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::CommandsHelpTopic, gmx::CompositeHelpTopic< HelpText >, gmx::CompositeHelpTopic< KeywordsHelpText >, gmx::SimpleHelpTopic< HelpText >, gmx::AbstractCompositeHelpTopic, gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::RootHelpTopic, and gmx::AbstractSimpleHelpTopic.
|
pure virtual |
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.
Implemented in gmx::anonymous_namespace{selhelp.cpp}::KeywordDetailsHelpTopic, gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::ModuleHelpTopic, gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::CommandsHelpTopic, gmx::CompositeHelpTopic< HelpText >, gmx::CompositeHelpTopic< KeywordsHelpText >, gmx::SimpleHelpTopic< HelpText >, gmx::AbstractCompositeHelpTopic, gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::RootHelpTopic, and gmx::AbstractSimpleHelpTopic.
|
pure virtual |
Prints the help text for this topic.
[in] | context | Context object for writing the help. |
std::bad_alloc | if out of memory. |
FileIOError | on any I/O error. |
Implemented in gmx::anonymous_namespace{selhelp.cpp}::KeywordsHelpTopic, gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::ModuleHelpTopic, gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::CommandsHelpTopic, gmx::anonymous_namespace{cmdlinehelpmodule.cpp}::RootHelpTopic, gmx::AbstractCompositeHelpTopic, and gmx::AbstractSimpleHelpTopic.