7 #ifndef PXR_USD_IMAGING_USD_IMAGING_ADAPTER_REGISTRY_H
8 #define PXR_USD_IMAGING_USD_IMAGING_ADAPTER_REGISTRY_H
19 #include <unordered_map>
29 std::shared_ptr<UsdImagingAPISchemaAdapter>;
31 #define USD_IMAGING_ADAPTER_KEY_TOKENS \
32 ((instanceAdapterKey, "__instanceAdapter")) \
33 ((drawModeAdapterKey, "__drawModeAdapter")) \
50 typedef std::unordered_map<TfToken,TfType,TfToken::HashFunctor> _TypeMap;
53 _TypeMap _apiSchemaTypeMap;
56 typedef std::vector<TfType> _TypeVector;
57 _TypeVector _keylessApiSchemaAdapterTypes;
59 template <
typename T,
typename factoryT>
60 std::shared_ptr<T> _ConstructAdapter(
61 TfToken const& adapterKey,
const _TypeMap &tm);
63 template <
typename T,
typename factoryT>
64 std::shared_ptr<T> _ConstructAdapter(
132 #endif //PXR_USD_IMAGING_USD_IMAGING_ADAPTER_REGISTRY_H
USDIMAGING_API bool HasAdapter(TfToken const &adapterKey)
USDIMAGING_API UsdImagingAPISchemaAdapterSharedPtr ConstructAPISchemaAdapter(TfToken const &adapterKey)
#define USD_IMAGING_ADAPTER_KEY_TOKENS
USDIMAGING_API ApiSchemaAdapters ConstructKeylessAPISchemaAdapters()
USDIMAGING_API_TEMPLATE_CLASS(TfSingleton< UsdImagingAdapterRegistry >)
std::shared_ptr< UsdImagingAPISchemaAdapter > UsdImagingAPISchemaAdapterSharedPtr
static USDIMAGING_API bool AreExternalPluginsEnabled()
USDIMAGING_API UsdImagingPrimAdapterSharedPtr ConstructAdapter(TfToken const &adapterKey)
std::vector< TfToken > TfTokenVector
Convenience types.
USDIMAGING_API const TfTokenVector & GetAPISchemaAdapterKeys()
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
USDIMAGING_API const TfTokenVector & GetAdapterKeys()
#define PXR_NAMESPACE_CLOSE_SCOPE
std::shared_ptr< UsdImagingPrimAdapter > UsdImagingPrimAdapterSharedPtr
std::vector< UsdImagingAPISchemaAdapterSharedPtr > ApiSchemaAdapters
USDIMAGING_API bool HasAPISchemaAdapter(TfToken const &adapterKey)
static USDIMAGING_API UsdImagingAdapterRegistry & GetInstance()
TF_DECLARE_PUBLIC_TOKENS(UsdImagingAdapterKeyTokens, USDIMAGING_API, USD_IMAGING_ADAPTER_KEY_TOKENS)