Exemplo n.º 1
0
void ResourceGroupManager::loadResourceGroup(const std::string& group)
{
    if (m_resources.find(group)==m_resources.end())
        m_resources.insert(std::pair<std::string, ResourceGroup*>(group, new ResourceGroup(group)));

    ResourceGroup *g = m_resources.at(group);
    for(boost::property_tree::ptree::value_type &v : m_ini.get_child(group))
        g->addPath(v.second.data());
}
Exemplo n.º 2
0
void ResourceGroupManager::addResourceLocation(const std::string& nom, const std::string& group)
{
    if (m_resources.find(group) == m_resources.end())
    {
        ResourceGroup *g = new ResourceGroup(group);
        g->addPath(nom);
        m_resources.insert(std::pair<std::string,ResourceGroup*>(group, g));
    }
    else
        m_resources.at(group)->addPath(nom);
}