All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ArResolverContextBinder Class Reference

Helper object for managing the binding and unbinding of ArResolverContext objects with the asset resolver. More...

#include <resolverContextBinder.h>

Public Member Functions

AR_API ArResolverContextBinder (const ArResolverContext &context)
 Bind the given context with the asset resolver.
 
AR_API ArResolverContextBinder (ArResolver *assetResolver, const ArResolverContext &context)
 Bind the given context to the given assetResolver.
 
AR_API ~ArResolverContextBinder ()
 Unbinds the context specified in the constructor of this object from the asset resolver.
 

Detailed Description

Helper object for managing the binding and unbinding of ArResolverContext objects with the asset resolver.

Context binding and unbinding are thread-specific. If you bind a context in a thread, that binding will only be visible to that thread. See Resolver Contexts for more details.

See also
Asset Resolver Context Operations

Definition at line 31 of file resolverContextBinder.h.

Constructor & Destructor Documentation

◆ ArResolverContextBinder() [1/2]

AR_API ArResolverContextBinder ( const ArResolverContext context)

Bind the given context with the asset resolver.

Calls ArResolver::BindContext on the configured asset resolver and saves the bindingData populated by that function.

◆ ArResolverContextBinder() [2/2]

AR_API ArResolverContextBinder ( ArResolver assetResolver,
const ArResolverContext context 
)

Bind the given context to the given assetResolver.

Calls ArResolver::BindContext on the given assetResolver and saves the bindingData populated by that function.

◆ ~ArResolverContextBinder()

Unbinds the context specified in the constructor of this object from the asset resolver.

Calls ArResolver::UnbindContext on the asset resolver that was bound to originally, passing the saved bindingData to that function.


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