Lumiera  0.pre.03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
assetmanager.hpp File Reference

Go to the source code of this file.


Proc-Layer Interface: Asset Lookup and Organisation.

Declares the AssetManager interface used to access individual Asset instances.

These classes are placed into namespace asset and proc_interface.


10/10 meanwhile I'm unhappy with some aspects of this implementation //////////////TICKET #691

12/12 and meanwhile I'm way more unhappy with the whole design. Looks like I wasn't proficient enough with OO design in C++ when writing that original design. Especially, this design couples the object creation, the memory management and the registration way too tightly. Having a registration magic in the asset baseclass ctor is just too clever and a half. Rather, there should be a responsibility chain, using completely passive Asset objects: Factory -> AssetManaager -> Asset object

See also

Definition in file assetmanager.hpp.

#include "proc/asset.hpp"
#include "lib/error.hpp"
#include "lib/depend.hpp"
#include <cstddef>
#include <string>
#include <list>
#include <boost/utility.hpp>


class  AssetManager
 Facade for the Asset subsystem. More...


 use of a non-registered Asset ID. More...
 Asset ID of wrong Asset kind, unable to cast. More...


 Proc-Layer implementation namespace root.
 The asset subsystem of the Proc-Layer.