This document is for a version of USD that is under development. See this page for the current release.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
resolverContextBinder.h
Go to the documentation of this file.
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_AR_RESOLVER_CONTEXT_BINDER_H
8#define PXR_USD_AR_RESOLVER_CONTEXT_BINDER_H
9
11
12#include "pxr/pxr.h"
13#include "pxr/usd/ar/api.h"
15#include "pxr/base/vt/value.h"
16
17PXR_NAMESPACE_OPEN_SCOPE
18
19class ArResolver;
20
32{
33public:
38 AR_API
40 const ArResolverContext& context);
41
46 AR_API
48 ArResolver* assetResolver,
49 const ArResolverContext& context);
50
56 AR_API
58
59private:
60 ArResolver* _resolver;
61 ArResolverContext _context;
62 VtValue _bindingData;
63};
64
65PXR_NAMESPACE_CLOSE_SCOPE
66
67#endif // PXR_USD_AR_RESOLVER_CONTEXT_BINDER_H
Helper object for managing the binding and unbinding of ArResolverContext objects with the asset reso...
AR_API ArResolverContextBinder(ArResolver *assetResolver, const ArResolverContext &context)
Bind the given context to the given assetResolver.
AR_API ArResolverContextBinder(const ArResolverContext &context)
Bind the given context with the asset resolver.
AR_API ~ArResolverContextBinder()
Unbinds the context specified in the constructor of this object from the asset resolver.
An asset resolver context allows clients to provide additional data to the resolver for use during re...
Interface for the asset resolution system.
Definition: resolver.h:43
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Definition: value.h:147