7 #ifndef PXR_BASE_TF_PY_ARG_H
8 #define PXR_BASE_TF_PY_ARG_H
13 #include "pxr/external/boost/python/dict.hpp"
14 #include "pxr/external/boost/python/tuple.hpp"
33 const std::string& typeDoc = std::string(),
34 const std::string& defaultValueDoc = std::string())
35 : _name(name), _typeDoc(typeDoc), _defaultValueDoc(defaultValueDoc)
44 {
return _defaultValueDoc; }
53 std::string _defaultValueDoc;
70 std::pair<pxr_boost::python::tuple, pxr_boost::python::dict>
72 const pxr_boost::python::tuple&
args,
73 const pxr_boost::python::dict& kwargs,
74 const TfPyArgs& expectedArgs,
75 bool allowExtraArgs =
false);
82 const std::string& functionName,
83 const TfPyArgs& requiredArguments =
TfPyArgs(),
84 const TfPyArgs& optionalArguments =
TfPyArgs(),
85 const std::string& description = std::string());
89 #endif // PXR_BASE_TF_PY_ARG_H
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.
std::vector< TfPyArg > TfPyArgs
TF_API std::pair< pxr_boost::python::tuple, pxr_boost::python::dict > TfPyProcessOptionalArgs(const pxr_boost::python::tuple &args, const pxr_boost::python::dict &kwargs, const TfPyArgs &expectedArgs, bool allowExtraArgs=false)
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