HDK
|
#include <PY_Kwargs.h>
Classes | |
struct | Expr |
Public Types | |
using | PyObjectMap = UT_StringMap< PY_PyObject * > |
Public Member Functions | |
PY_Kwargs (UT_StringRef const &fmt="{'args':{%s}}") | |
~PY_Kwargs ()=default | |
PY_Kwargs (PY_Kwargs &&other) | |
PY_Kwargs (PY_Kwargs const &other)=default | |
void | add (char const *key, PY_Kwargs const &value) |
void | add (char const *key, char const *value, bool use_double_quote=false) |
void | addUIEvent (char const *key, int64 value) |
void | add (char const *key, Expr const &value) |
void | add (char const *key, UT_Vector3 const &value) |
void | add (char const *key, UT_Vector3D const &value) |
void | add (char const *key, UT_Vector4 const &value) |
void | add (char const *key, UT_Vector4D const &value) |
void | add (char const *key, int value) |
void | add (char const *key, int64 value) |
void | add (char const *key, float value) |
void | add (char const *key, fpreal64 value) |
void | addBool (char const *key, int value) |
void | addExpr (char const *key, char const *expr, int64 value) |
void | addGeometrySelection (char const *key, int64 sinfo_address) |
void | addNodeList (char const *key, int64 nodelist_address) |
void | addDynDetails (char const *key, int64 sinfo_address) |
void | addDynPoints (char const *key, int64 sinfo_address) |
void | addDynPolygons (char const *key, int64 sinfo_address) |
void | addPYObject (const char *key, void *value) |
void | addPYObject (const char *key, PY_PyObject const *value) |
void | append (PY_Kwargs const &other) |
PY_Result | evaluate (const char *key, PY_Result::Type desired_result_type) const |
PyObjectMap const & | pyObjectMap () const |
PyObjectMap & | pyObjectMap () |
operator UT_StringHolder () const | |
UT_StringHolder | value () const |
void | setOutputFormat (UT_StringRef const &out_format) |
void | reset (UT_StringHolder const &kwargs_value) |
Protected Member Functions | |
UT_StringHolder | format (char const *value_fmt) |
UT_StringHolder | make (char const *fmt, char const *key, char const *val) |
Protected Attributes | |
UT_StringHolder | myStr |
UT_StringHolder | myOutputFormat |
size_t | myCount |
PyObjectMap | myPyObjectMap |
Definition at line 19 of file PY_Kwargs.h.
using PY_Kwargs::PyObjectMap = UT_StringMap< PY_PyObject*> |
Definition at line 22 of file PY_Kwargs.h.
PY_Kwargs::PY_Kwargs | ( | UT_StringRef const & | fmt = "{'args':{%s}}" | ) |
|
default |
PY_Kwargs::PY_Kwargs | ( | PY_Kwargs && | other | ) |
|
default |
void PY_Kwargs::add | ( | char const * | key, |
char const * | value, | ||
bool | use_double_quote = false |
||
) |
void PY_Kwargs::add | ( | char const * | key, |
UT_Vector3 const & | value | ||
) |
void PY_Kwargs::add | ( | char const * | key, |
UT_Vector3D const & | value | ||
) |
void PY_Kwargs::add | ( | char const * | key, |
UT_Vector4 const & | value | ||
) |
void PY_Kwargs::add | ( | char const * | key, |
UT_Vector4D const & | value | ||
) |
void PY_Kwargs::addPYObject | ( | const char * | key, |
PY_PyObject const * | value | ||
) |
PY_Result PY_Kwargs::evaluate | ( | const char * | key, |
PY_Result::Type | desired_result_type | ||
) | const |
|
protected |
|
protected |
|
inline |
Definition at line 108 of file PY_Kwargs.h.
PyObjectMap const& PY_Kwargs::pyObjectMap | ( | ) | const |
PyObjectMap& PY_Kwargs::pyObjectMap | ( | ) |
void PY_Kwargs::reset | ( | UT_StringHolder const & | kwargs_value | ) |
void PY_Kwargs::setOutputFormat | ( | UT_StringRef const & | out_format | ) |
|
inline |
Definition at line 113 of file PY_Kwargs.h.
|
protected |
Definition at line 133 of file PY_Kwargs.h.
|
protected |
Definition at line 132 of file PY_Kwargs.h.
|
protected |
Definition at line 134 of file PY_Kwargs.h.
|
protected |
Definition at line 131 of file PY_Kwargs.h.