HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PY_Kwargs Class Reference

#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
 
PyObjectMappyObjectMap ()
 
 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
 

Detailed Description

Definition at line 19 of file PY_Kwargs.h.

Member Typedef Documentation

Definition at line 22 of file PY_Kwargs.h.

Constructor & Destructor Documentation

PY_Kwargs::PY_Kwargs ( UT_StringRef const &  fmt = "{'args':{%s}}")
PY_Kwargs::~PY_Kwargs ( )
default
PY_Kwargs::PY_Kwargs ( PY_Kwargs &&  other)
PY_Kwargs::PY_Kwargs ( PY_Kwargs const &  other)
default

Member Function Documentation

void PY_Kwargs::add ( char const *  key,
PY_Kwargs const &  value 
)
void PY_Kwargs::add ( char const *  key,
char const *  value,
bool  use_double_quote = false 
)
void PY_Kwargs::add ( char const *  key,
Expr const &  value 
)
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::add ( char const *  key,
int  value 
)
void PY_Kwargs::add ( char const *  key,
int64  value 
)
void PY_Kwargs::add ( char const *  key,
float  value 
)
void PY_Kwargs::add ( char const *  key,
fpreal64  value 
)
void PY_Kwargs::addBool ( char const *  key,
int  value 
)
void PY_Kwargs::addDynDetails ( char const *  key,
int64  sinfo_address 
)
void PY_Kwargs::addDynPoints ( char const *  key,
int64  sinfo_address 
)
void PY_Kwargs::addDynPolygons ( char const *  key,
int64  sinfo_address 
)
void PY_Kwargs::addExpr ( char const *  key,
char const *  expr,
int64  value 
)
void PY_Kwargs::addGeometrySelection ( char const *  key,
int64  sinfo_address 
)
void PY_Kwargs::addNodeList ( char const *  key,
int64  nodelist_address 
)
void PY_Kwargs::addPYObject ( const char *  key,
void value 
)
void PY_Kwargs::addPYObject ( const char *  key,
PY_PyObject const *  value 
)
void PY_Kwargs::addUIEvent ( char const *  key,
int64  value 
)
void PY_Kwargs::append ( PY_Kwargs const &  other)
PY_Result PY_Kwargs::evaluate ( const char *  key,
PY_Result::Type  desired_result_type 
) const
UT_StringHolder PY_Kwargs::format ( char const *  value_fmt)
protected
UT_StringHolder PY_Kwargs::make ( char const *  fmt,
char const *  key,
char const *  val 
)
protected
PY_Kwargs::operator UT_StringHolder ( ) const
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)
UT_StringHolder PY_Kwargs::value ( ) const
inline

Definition at line 113 of file PY_Kwargs.h.

Member Data Documentation

size_t PY_Kwargs::myCount
protected

Definition at line 133 of file PY_Kwargs.h.

UT_StringHolder PY_Kwargs::myOutputFormat
protected

Definition at line 132 of file PY_Kwargs.h.

PyObjectMap PY_Kwargs::myPyObjectMap
protected

Definition at line 134 of file PY_Kwargs.h.

UT_StringHolder PY_Kwargs::myStr
protected

Definition at line 131 of file PY_Kwargs.h.


The documentation for this class was generated from the following file: