clan::XMLResourceManager Class Reference - ClanLib SDK
Description: clan::XMLResourceManager Class Reference

Static Public Member Functions | List of all members
clan::XMLResourceManager Class Reference
clanXML Resources

Resource manager loading from XMLResourceDocument. More...

`#include <xml_resource_manager.h>`

## Static Public Member Functions
static void | add_cache_factory (std::function< void(ResourceManager &, const XMLResourceDocument &)> factory_callback)
| Adds a cache factory callback.
static ResourceManager | create (const XMLResourceDocument &doc)
| Creates a resource manager.
static XMLResourceDocument & | get_doc (const ResourceManager &manager)
| Gets the XML resource document used by a resource manager.

## Detailed Description

Resource manager loading from XMLResourceDocument.

## Member Function Documentation

## ◆ add_cache_factory()

void clan::XMLResourceManager::add_cache_factory | ( | std::function< void(ResourceManager &, const XMLResourceDocument &)> | factory_callback | ) |
| static

Adds a cache factory callback.

Each factory callback is invoked every time a resource manager is created.

## ◆ create()

ResourceManager clan::XMLResourceManager::create | ( | const XMLResourceDocument & | doc | ) |
| static

Creates a resource manager.

## ◆ get_doc()

XMLResourceDocument & clan::XMLResourceManager::get_doc | ( | const ResourceManager & | manager | ) |
| static

Gets the XML resource document used by a resource manager.

The documentation for this class was generated from the following file:

- xml_resource_manager.h