|
ctrlX Data Layer API for Python
3.4.0
The ctrlX Data Layer API allows access to the ctrlX Data Layer with Python
|
Public Member Functions | |
| def | __init__ (self, C_DLR_CONVERTER c_converter) |
| def | converter_generate_json_complex (self, Variant data, Variant ty, int indent_step) |
| def | converter_generate_json_simple (self, Variant data, int indent_step) |
| def | get_handle (self) |
| def | get_schema (self, C_DLR_SCHEMA schema) |
| def | parse_json_complex (self, str json, Variant ty) |
| def | parse_json_simple (self, str json) |
Converter interface.
Definition at line 30 of file converter.py.
This function generate a JSON string out of a Variant with complex type (flatbuffers) and the metadata of this data.
| [in] | data | Variant which contains data of complex data type (flatbuffers) if data is empty (VariantType::UNKNOWN) type is converted to json schema |
| [in] | type | Variant which contains type of data (Variant with flatbuffers BFBS) |
| [in] | indentStep | Indentation length for json string |
Definition at line 69 of file converter.py.
References Converter.__converter.
| def converter_generate_json_simple | ( | self, | |
| Variant | data, | ||
| int | indent_step | ||
| ) |
This function generate a JSON string out of a Variant witch have a simple data type.
| [in] | data | Variant which contains data with simple data type |
| [in] | indentStep | Indentation length for json string |
Definition at line 54 of file converter.py.
References Converter.__converter.
| def get_schema | ( | self, | |
| C_DLR_SCHEMA | schema | ||
| ) |
This function returns the type (schema)
| [in] | schema | Requested schema |
Definition at line 115 of file converter.py.
References Converter.__converter.
| def parse_json_complex | ( | self, | |
| str | json, | ||
| Variant | ty | ||
| ) |
This function generates a Variant out of a JSON string containing the (complex) data.
| [in] | json | Data of the Variant as a json string |
| [in] | type | Variant which contains type of data (Variant with bfbs flatbuffer content) |
Definition at line 100 of file converter.py.
References Converter.__converter.
| def parse_json_simple | ( | self, | |
| str | json | ||
| ) |
This function generates a Variant out of a JSON string containing the (simple) data.
| [in] | json | Data of the Variant as a json string |
Definition at line 83 of file converter.py.
References Converter.__converter.