HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyResolverContext.h
Go to the documentation of this file.
1 //
2 // Copyright 2020 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_PY_RESOLVER_CONTEXT_H
8 #define PXR_USD_AR_PY_RESOLVER_CONTEXT_H
9 
10 /// \file ar/pyResolverContext.h
11 /// Macros for creating Python bindings for objects used with
12 /// ArResolverContext.
13 
14 #include "pxr/external/boost/python/implicit.hpp"
15 
16 #include "pxr/pxr.h"
18 
20 
21 /// Register the specified type as a context object that may be converted from
22 /// Python into a ArResolverContext object in C++. This typically would be
23 /// called in the source file where the Python wrapping for the context object
24 /// is defined.
25 template <class Context>
26 void
28 
29 #ifndef doxygen
30 
31 template <class Context>
32 void
34 {
35  pxr_boost::python::implicitly_convertible<Context, ArResolverContext>();
36 };
37 
38 #endif //doxygen
39 
41 
42 #endif
PXR_NAMESPACE_OPEN_SCOPE void ArWrapResolverContextForPython()
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74