clan::XMLResourceManager Class Reference

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 XMLResourceDocumentget_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()

static 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()

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

Creates a resource manager.

◆ get_doc()

static 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: