HDK
|
#include <resolverContextBinder.h>
Public Member Functions | |
AR_API | ArResolverContextBinder (const ArResolverContext &context) |
AR_API | ArResolverContextBinder (ArResolver *assetResolver, const ArResolverContext &context) |
AR_API | ~ArResolverContextBinder () |
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.
Definition at line 48 of file resolverContextBinder.h.
AR_API ArResolverContextBinder::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.
AR_API ArResolverContextBinder::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.
AR_API ArResolverContextBinder::~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.