HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyUtils.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_SDF_PY_UTILS_H
8 #define PXR_USD_SDF_PY_UTILS_H
9 
10 #include "pxr/pxr.h"
11 #include "pxr/usd/sdf/api.h"
12 #include "pxr/usd/sdf/layer.h"
13 
14 #include "pxr/external/boost/python/dict.hpp"
15 #include <string>
16 
18 
19 /// Convert the Python dictionary \p dict to an SdfLayer::FileFormatArguments
20 /// object and return it via \p args.
21 ///
22 /// If a non-string key or value is encountered, \p errMsg will be filled in
23 /// (if given) and this function will return false. Otherwise, this function
24 /// will return true.
25 SDF_API bool
27  const pxr_boost::python::dict& dict,
29  std::string* errMsg = NULL);
30 
32 
33 #endif // PXR_USD_SDF_PY_UTILS_H
PXR_NAMESPACE_OPEN_SCOPE SDF_API bool SdfFileFormatArgumentsFromPython(const pxr_boost::python::dict &dict, SdfLayer::FileFormatArguments *args, std::string *errMsg=NULL)
std::map< std::string, std::string > FileFormatArguments
Definition: layer.h:107
#define SDF_API
Definition: api.h:23
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
**If you just want to fire and args
Definition: thread.h:618