24 #ifndef PXR_BASE_TF_PY_ARG_H
25 #define PXR_BASE_TF_PY_ARG_H
30 #include <hboost/python/dict.hpp>
31 #include <hboost/python/tuple.hpp>
52 : _name(name), _typeDoc(typeDoc), _defaultValueDoc(defaultValueDoc)
61 {
return _defaultValueDoc; }
87 std::pair<hboost::python::tuple, hboost::python::dict>
89 const hboost::python::tuple&
args,
90 const hboost::python::dict& kwargs,
91 const TfPyArgs& expectedArgs,
92 bool allowExtraArgs =
false);
100 const TfPyArgs& requiredArguments =
TfPyArgs(),
101 const TfPyArgs& optionalArguments =
TfPyArgs(),
106 #endif // PXR_BASE_TF_PY_ARG_H
GLsizei const GLchar *const * string
const std::string & GetDefaultValueDoc() const
Returns documentation for default value (if any) for this argument.
const std::string & GetTypeDoc() const
Returns documentation of type of value required by this argument.
TF_API std::pair< hboost::python::tuple, hboost::python::dict > TfPyProcessOptionalArgs(const hboost::python::tuple &args, const hboost::python::dict &kwargs, const TfPyArgs &expectedArgs, bool allowExtraArgs=false)
std::vector< TfPyArg > TfPyArgs
GLuint const GLchar * name
const std::string & GetName() const
Returns argument name.
TfPyArg(const std::string &name, const std::string &typeDoc=std::string(), const std::string &defaultValueDoc=std::string())
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
TF_API std::string TfPyCreateFunctionDocString(const std::string &functionName, const TfPyArgs &requiredArguments=TfPyArgs(), const TfPyArgs &optionalArguments=TfPyArgs(), const std::string &description=std::string())
#define PXR_NAMESPACE_CLOSE_SCOPE
**If you just want to fire and args