Gromacs
2018.8
|
#include <gromacs/onlinehelp/helptopic.h>
Template for simple implementation of AbstractSimpleHelpTopic.
HelpText | Struct that defines the data for the topic. |
HelpText
should have public static members "const char name[]"
, "const char title[]"
and "const char *const text[]"
.
Typical use:
Public Member Functions | |
virtual const char * | name () const |
Returns the name of the topic. More... | |
virtual const char * | title () const |
Returns a title for the topic. More... | |
Public Member Functions inherited from gmx::AbstractSimpleHelpTopic | |
virtual bool | hasSubTopics () const |
Returns whether the topic has any subtopics. | |
virtual const IHelpTopic * | findSubTopic (const char *name) const |
Finds a subtopic by name. More... | |
virtual void | writeHelp (const HelpWriterContext &context) const |
Prints the help text for this topic. More... | |
Protected Member Functions | |
virtual std::string | helpText () const |
Returns the help text for this topic. More... | |
|
inlineprotectedvirtual |
Returns the help text for this topic.
writeHelp() calls this method to obtain the actual text to format for the topic. Markup substitution etc. is done automatically by writeHelp().
Implements gmx::AbstractSimpleHelpTopic.
|
inlinevirtual |
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::AbstractSimpleHelpTopic.
|
inlinevirtual |
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::AbstractSimpleHelpTopic.