24 #ifndef PXR_USD_AR_DEFINE_RESOLVER_H
25 #define PXR_USD_AR_DEFINE_RESOLVER_H
31 #include "pxr/usd/ar/api.h"
32 #include "pxr/usd/ar/resolver.h"
35 #include "pxr/base/tf/type.h"
37 PXR_NAMESPACE_OPEN_SCOPE
50 #define AR_DEFINE_RESOLVER(ResolverClass, BaseClass1, ...)
52 #define AR_DEFINE_RESOLVER(...) \
53 TF_REGISTRY_FUNCTION(TfType) { \
54 Ar_DefineResolver<__VA_ARGS__>(); \
58 class Ar_ResolverFactoryBase
67 class Ar_ResolverFactory
68 :
public Ar_ResolverFactoryBase
77 template <
class Resolver,
class ...Bases>
78 void Ar_DefineResolver()
81 .
template SetFactory<Ar_ResolverFactory<Resolver> >();
84 PXR_NAMESPACE_CLOSE_SCOPE
86 #endif // PXR_USD_AR_DEFINE_RESOLVER_H
Base class of all factory types.
A type-list of C++ base types.
static TfType const & Define()
Define a TfType with the given C++ type T and C++ base types B.
Interface for the asset resolution system.