A section contains topics and sections along with title and ID. More...
#include <help_impl.hpp>
Public Member Functions | |
section () | |
bool | operator== (const section &) const |
Two sections are equal if their IDs are equal. More... | |
bool | operator< (const section &) const |
Comparison on the ID. More... | |
void | add_section (const section &s) |
Allocate memory for and add the section. More... | |
void | clear () |
Public Attributes | |
std::string | title |
std::string | id |
topic_list | topics |
section_list | sections |
A section contains topics and sections along with title and ID.
Definition at line 148 of file help_impl.hpp.
|
inline |
Definition at line 149 of file help_impl.hpp.
void help::section::add_section | ( | const section & | s | ) |
Allocate memory for and add the section.
Definition at line 1283 of file help_impl.cpp.
Referenced by help::generate_era_sections(), help::generate_races_sections(), help::generate_terrain_sections(), help::generate_unit_sections(), and help::parse_config_internal().
void help::section::clear | ( | ) |
Definition at line 1288 of file help_impl.cpp.
References sections, and topics.
Referenced by help::generate_contents(), and help::help_manager::~help_manager().
bool help::section::operator< | ( | const section & | sec | ) | const |
bool help::section::operator== | ( | const section & | sec | ) | const |
Two sections are equal if their IDs are equal.
Definition at line 1273 of file help_impl.cpp.
References id.
std::string help::section::id |
Definition at line 166 of file help_impl.hpp.
Referenced by gui2::dialogs::help_browser::add_topics_for_section(), help::generate_terrain_sections(), help::generate_unit_sections(), operator<(), operator==(), and help::parse_config_internal().
section_list help::section::sections |
Definition at line 168 of file help_impl.hpp.
Referenced by add_section(), gui2::dialogs::help_browser::add_topics_for_section(), clear(), help::find_section(), help::find_topic(), help::generate_contents_links(), and help::parse_config_internal().
std::string help::section::title |
Definition at line 166 of file help_impl.hpp.
Referenced by gui2::dialogs::help_browser::add_topics_for_section(), help::generate_terrain_sections(), help::generate_unit_sections(), help::section_less::operator()(), and help::parse_config_internal().
topic_list help::section::topics |
Definition at line 167 of file help_impl.hpp.
Referenced by gui2::dialogs::help_browser::add_topics_for_section(), clear(), help::find_topic(), help::generate_contents_links(), help::generate_terrain_sections(), help::generate_unit_sections(), and help::parse_config_internal().