ManaPlus
|
Typedefs | |
typedef std::map< int, std::vector< ItemFieldType * > > | OptionInfos |
Functions | |
void | load () |
void | unload () |
void | loadXmlFile (const std::string &fileName, const SkipError skipError) |
const std::vector< ItemFieldType * > & | getFields (const int id) |
typedef std::map<int, std::vector <ItemFieldType*> > ItemOptionDb::OptionInfos |
Definition at line 47 of file itemoptiondb.h.
const std::vector< ItemFieldType * > & ItemOptionDb::getFields | ( | const int | id | ) |
Definition at line 146 of file itemoptiondb.cpp.
References anonymous_namespace{itemoptiondb.cpp}::mEmptyOption, and anonymous_namespace{itemoptiondb.cpp}::mOptions.
Referenced by ItemPopup::getOptionsString().
void ItemOptionDb::load | ( | ) |
Definition at line 41 of file itemoptiondb.cpp.
References Configuration::getStringValue(), loadXmlDir, loadXmlFile(), Logger::log1(), logger, anonymous_namespace{itemoptiondb.cpp}::mLoaded, paths, SkipError_false, SkipError_true, and Net::unload().
Referenced by DbManager::loadDb().
void ItemOptionDb::loadXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 85 of file itemoptiondb.cpp.
References fileName, for_each_xml_child_node, ItemFieldDb::getAddFields(), XML::getProperty(), ItemFieldDb::getRequiredFields(), loadXmlFile(), Logger::log(), logger, anonymous_namespace{itemoptiondb.cpp}::mOptions, readOptionFields(), reportAlways, XML::Document::rootNode(), SkipError_true, and UseVirtFs_true.
void ItemOptionDb::unload | ( | ) |
Definition at line 139 of file itemoptiondb.cpp.
References Logger::log1(), logger, anonymous_namespace{itemoptiondb.cpp}::mLoaded, and anonymous_namespace{itemoptiondb.cpp}::mOptions.
Referenced by DbManager::unloadDb().