Corrade/Utility/Resource.h file

Class Corrade::Utility::Resource.

Contents

Namespaces

namespace Corrade
Root namespace.
namespace Corrade::Utility
Utitlities.

Classes

class Corrade::Utility::Resource
Data resource management.

Defines

#define CORRADE_RESOURCE_INITIALIZE(name)
Initialize resource.
#define CORRADE_RESOURCE_FINALIZE(name)
Cleanup resource.

Define documentation

#define CORRADE_RESOURCE_INITIALIZE(name)

Initialize resource.

If a resource is compiled into dynamic library or directly into executable, it will be initialized automatically thanks to CORRADE_AUTOMATIC_INITIALIZER() macros. However, if the resource is compiled into static library, it must be explicitly initialized via this macro, e.g. at the beginning of main(). You can also wrap these macro calls into another function (which will then be compiled into dynamic library or main executable) and use CORRADE_AUTOMATIC_INITIALIZER() macro for automatic call.

#define CORRADE_RESOURCE_FINALIZE(name)

Cleanup resource.

Cleans up resource previously (even automatically) initialized via CORRADE_RESOURCE_INITIALIZE().