24 #ifndef PXR_USD_IMAGING_USD_IMAGING_ADAPTER_REGISTRY_H
25 #define PXR_USD_IMAGING_USD_IMAGING_ADAPTER_REGISTRY_H
36 #include <unordered_map>
46 std::shared_ptr<UsdImagingAPISchemaAdapter>;
48 #define USD_IMAGING_ADAPTER_KEY_TOKENS \
49 ((instanceAdapterKey, "__instanceAdapter")) \
50 ((drawModeAdapterKey, "__drawModeAdapter")) \
67 typedef std::unordered_map<TfToken,TfType,TfToken::HashFunctor> _TypeMap;
70 _TypeMap _apiSchemaTypeMap;
73 typedef std::vector<TfType> _TypeVector;
74 _TypeVector _keylessApiSchemaAdapterTypes;
76 template <
typename T,
typename factoryT>
77 std::shared_ptr<T> _ConstructAdapter(
78 TfToken const& adapterKey,
const _TypeMap &tm);
80 template <
typename T,
typename factoryT>
81 std::shared_ptr<T> _ConstructAdapter(
149 #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)