HDK
|
#include <PDGT_Value.h>
Public Types | |
enum | DataType { eInteger, eFloat, eString, ePythonObject, eInvalid } |
using | Map = UT_ArrayStringMap< PDGT_Value > |
using | Array = UT_Array< PDGT_Value > |
Static Public Member Functions | |
static UT_StringHolder | getDataTypeAsString (DataType type) |
static void | fromJSONArray (Array &value_array, const UT_JSONValueArray &json_array, DataType data_type) |
Definition at line 23 of file PDGT_Value.h.
using PDGT_Value::Array = UT_Array<PDGT_Value> |
Definition at line 27 of file PDGT_Value.h.
using PDGT_Value::Map = UT_ArrayStringMap<PDGT_Value> |
Definition at line 26 of file PDGT_Value.h.
enum PDGT_Value::DataType |
Enumerator | |
---|---|
eInteger | |
eFloat | |
eString | |
ePythonObject | |
eInvalid |
Definition at line 29 of file PDGT_Value.h.
PDGT_Value::PDGT_Value | ( | ) |
PDGT_Value::PDGT_Value | ( | const PDGT_Value & | other | ) |
PDGT_Value::PDGT_Value | ( | fpreal | float_value | ) |
PDGT_Value::PDGT_Value | ( | exint | int_value | ) |
PDGT_Value::PDGT_Value | ( | bool | bool_value | ) |
PDGT_Value::PDGT_Value | ( | int | int_value | ) |
PDGT_Value::PDGT_Value | ( | const char * | str_value | ) |
PDGT_Value::PDGT_Value | ( | PY_PyObject * | py_value | ) |
PDGT_Value::~PDGT_Value | ( | ) |
bool PDGT_Value::boolValue | ( | ) | const |
DataType PDGT_Value::dataType | ( | ) | const |
fpreal PDGT_Value::floatValue | ( | ) | const |
|
static |
|
static |
exint PDGT_Value::intValue | ( | ) | const |
void PDGT_Value::loadValue | ( | const UT_JSONValue & | json_value, |
DataType | data_type | ||
) |
PDGT_Value& PDGT_Value::operator= | ( | const PDGT_Value & | other | ) |
PY_PyObject* PDGT_Value::pyObjectValue | ( | ) | const |
void PDGT_Value::setBoolValue | ( | bool | bool_value | ) |
void PDGT_Value::setPythonObjectValue | ( | PY_PyObject * | py_value | ) |
void PDGT_Value::setValue | ( | const PDGT_Value & | value | ) |
void PDGT_Value::setValue | ( | bool | bool_value | ) |
void PDGT_Value::setValue | ( | PY_PyObject * | py_object | ) |
const UT_StringHolder& PDGT_Value::stringValue | ( | ) | const |
bool PDGT_Value::valid | ( | ) | const |
void PDGT_Value::value | ( | bool & | value | ) | const |
void PDGT_Value::value | ( | UT_StringHolder & | value | ) | const |
UT_StringHolder PDGT_Value::valueAsString | ( | bool | quoted = true | ) | const |
void PDGT_Value::valueAsString | ( | UT_WorkBuffer & | buffer, |
bool | quoted = true |
||
) | const |
void PDGT_Value::valueToJSON | ( | UT_JSONWriter & | writer | ) | const |