HDK
|
#include <HUSD_CvexCode.h>
Public Types | |
enum | ReturnType { ReturnType::NONE, ReturnType::BOOLEAN, ReturnType::STRING } |
Public Member Functions | |
HUSD_CvexCode (const UT_StringRef &cmd_or_vexpr, bool is_cmd=true) | |
Creates the cvex code object given the string and its meaning. More... | |
const UT_StringHolder & | getSource () const |
Returns the source string (either a command or vexpression). More... | |
bool | isCommand () const |
Returns true if the source is a command, or false if it's a vexpression. More... | |
void | setReturnType (ReturnType type) |
ReturnType | getReturnType () const |
void | setExportsPattern (const UT_StringRef &pattern) |
Sets the export variables (useful for Vexpressions) More... | |
const UT_StringHolder & | getExportsPattern () const |
Sets the export variables (useful for Vexpressions) More... | |
Abstracts the CVEX source code (either command or vexpression), along with some aspects of it, such as return type and export parameter mask for expressions.
Definition at line 27 of file HUSD_CvexCode.h.
|
strong |
Enumerator | |
---|---|
NONE | |
BOOLEAN | |
STRING |
Definition at line 42 of file HUSD_CvexCode.h.
HUSD_CvexCode::HUSD_CvexCode | ( | const UT_StringRef & | cmd_or_vexpr, |
bool | is_cmd = true |
||
) |
Creates the cvex code object given the string and its meaning.
|
inline |
Sets the export variables (useful for Vexpressions)
Definition at line 64 of file HUSD_CvexCode.h.
|
inline |
Sets the return type for the code. Cvex scripts that select (match) primitives or faces return a boolean. Cvex scripts that partition with keyword, usually return a string. Cvex scripts that partition with all outupt values, or run on all attributes (ie, are not used for selection or partitionin), usually return void (which is a default value).
Definition at line 57 of file HUSD_CvexCode.h.
|
inline |
Returns the source string (either a command or vexpression).
Definition at line 34 of file HUSD_CvexCode.h.
|
inline |
Returns true if the source is a command, or false if it's a vexpression.
Definition at line 38 of file HUSD_CvexCode.h.
|
inline |
Sets the export variables (useful for Vexpressions)
Definition at line 62 of file HUSD_CvexCode.h.
|
inline |
Sets the return type for the code. Cvex scripts that select (match) primitives or faces return a boolean. Cvex scripts that partition with keyword, usually return a string. Cvex scripts that partition with all outupt values, or run on all attributes (ie, are not used for selection or partitionin), usually return void (which is a default value).
Definition at line 55 of file HUSD_CvexCode.h.