ManaPlus
|
Functions | |
void | load () |
void | loadXmlFile (const std::string &fileName, const SkipError skipError) |
std::string | getByIndex (const int index) |
const StringVect & | getTexts () |
void | unload () |
std::string TextDb::getByIndex | ( | const int | index | ) |
Definition at line 97 of file textdb.cpp.
References anonymous_namespace{textdb.cpp}::mTexts.
Referenced by ChatWindow::action().
const StringVect & TextDb::getTexts | ( | ) |
Definition at line 92 of file textdb.cpp.
References anonymous_namespace{textdb.cpp}::mTexts.
Referenced by EmoteWindow::show().
void TextDb::load | ( | ) |
Definition at line 37 of file textdb.cpp.
References Configuration::getStringValue(), loadXmlDir, loadXmlFile(), Logger::log1(), logger, paths, SkipError_false, SkipError_true, and Net::unload().
Referenced by DbManager::loadDb().
void TextDb::loadXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 46 of file textdb.cpp.
References fileName, for_each_xml_child_node, XML::getBoolProperty(), XML::getProperty(), loadXmlFile(), anonymous_namespace{textdb.cpp}::mTexts, XML::Document::rootNode(), and UseVirtFs_true.
void TextDb::unload | ( | ) |
Definition at line 86 of file textdb.cpp.
References Logger::log1(), logger, and anonymous_namespace{textdb.cpp}::mTexts.
Referenced by DbManager::unloadDb().