void Gui::_load(xml::xmlNodePtr _node, const std::string & _file) { // берем детей и крутимс¤, основной цикл xml::xmlNodeIterator node = _node->getNodeIterator(); while (node.nextNode(XML_TYPE)) { std::string source; if (false == node->findAttribute("file", source)) continue; std::string group = node->findAttribute("group"); MYGUI_LOG(Info, "Load ini file '" << source << "' from " << (group.empty() ? "current path" : "resource group : ") << group); _loadImplement(source, group, false, "", INSTANCE_TYPE_NAME); }; }
void ResourceManager::_loadList(xml::ElementPtr _node, const std::string& _file, Version _version) { // берем детей и крутимся, основной цикл xml::ElementEnumerator node = _node->getElementEnumerator(); while (node.next(XML_TYPE_LIST)) { std::string source; if (!node->findAttribute("file", source)) continue; MYGUI_LOG(Info, "Load ini file '" << source << "'"); _loadImplement(source, false, "", INSTANCE_TYPE_NAME); } }
bool Gui::load(const std::string & _file, const std::string & _group) { return _loadImplement(_file, _group, false, "", INSTANCE_TYPE_NAME); }
bool ResourceManager::load(const std::string& _file) { return _loadImplement(_file, false, "", INSTANCE_TYPE_NAME); }
bool ResourceManager::load(const std::string& _file) { return _loadImplement(_file, false, "", getClassTypeName()); }