def get_record_with_derivings_f1(cself): try: _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).key1) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_some_const_record_f2(cself): try: _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).number2) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_constant_record_f1(cself): try: _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).some_integer) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_assorted_primitives_f7(cself): try: _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).fsixtyfour) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def __python_next(cself): try: _ret = CPyPrimitive.fromPy(next(CPyObjectProxy.toPyIter(cself))) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_foo_client_returned_record_f1(cself): try: _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).record_id) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def on_changes_int_returned(cself, i, f, s, binar, b, d): try: _ret = CPyPrimitive.fromPy(FooListenerHelper.selfToPy(cself).on_changes_int_returned(CPyPrimitive.toPy(i), CPyPrimitive.toPy(f), CPyString.toPy(s), CPyBinary.toPy(binar), CPyPrimitive.toPy(b), CPyDate.toPy(d))) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_private_int(cself): try: _ret = CPyPrimitive.fromPy(FooListenerHelper.selfToPy(cself).get_private_int()) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def __get_elem(cself, index): try: _ret = CPyPrimitive.fromPy(CPyObject.toPy(None, cself)[index]) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_foo_extensible_record_f1(cself): try: _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).number1) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_my_record_f1(cself): try: _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).test) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_all_datatypes_f7(cself): try: _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).float64Data) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_foo_constants_f1(cself): try: _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).some_integer) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_record_with_nested_derivings_f1(cself): try: _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).key) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get__varname_record__f1(cself): try: _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself)._field_) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def cause_changes_int_returned(self, i, f, s, binar, b, d): with CPyString.fromPy(s) as pys_s,\ CPyBinary.fromPy(binar) as pybin_binar: _ret_c = lib.cw__foo_receiver_cause_changes_int_returned(self._cpp_impl, CPyPrimitive.fromPy(i), CPyPrimitive.fromPy(f), pys_s.release_djinni_string(), pybin_binar.release_djinni_binary(), CPyPrimitive.fromPy(b), CPyDate.fromPy(d)) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyPrimitive.toPy(_ret_c) assert _ret is not None return _ret
def __get_value(cself, key): pyKey = CPyString.toPyWithoutTakingOwnership(key) assert pyKey is not None try: _ret = CPyPrimitive.fromPy(CPyObjectProxy.toPyObj(None, cself)[pyKey]) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def identifier_check(cself, data, r, jret): try: _ret = CPyPrimitive.fromPy( ClientInterfaceHelper.selfToPy(cself).identifier_check( CPyBinary.toPy(data), CPyPrimitive.toPy(r), CPyPrimitive.toPy(jret))) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def __get_value(cself, key): pyKey = CPyEnum.toPy(MyEnum, key) assert pyKey is not None try: _ret = CPyPrimitive.fromPy( CPyObjectProxy.toPyObj(None, cself)[pyKey]) return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def update_static_counter_to(init): _ret_c = lib.cw__foo_static_update_static_counter_to(CPyPrimitive.fromPy(init)) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyPrimitive.toPy(_ret_c) assert _ret is not None return _ret
def set_bool(self, private_bool): lib.cw__foo_primitives_set_bool(self._cpp_impl, CPyPrimitive.fromPy(private_bool)) CPyException.toPyCheckAndRaise(ffi.NULL)
def set_private_int32(self, private_int): lib.cw__foo_interface_set_private_int32(self._cpp_impl, CPyPrimitive.fromPy(private_int)) CPyException.toPyCheckAndRaise(ffi.NULL)
def method_returning_nothing(self, value): lib.cw__my_cpp_interface_method_returning_nothing( self._cpp_impl, CPyPrimitive.fromPy(value)) CPyException.toPyCheckAndRaise(ffi.NULL)
def cause_changes_record_returned(self, n1, n2): _ret_c = lib.cw__foo_receiver_cause_changes_record_returned(self._cpp_impl, CPyPrimitive.fromPy(n1), CPyPrimitive.fromPy(n2)) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyRecord.toPy(FooSomeOtherRecord.c_data_set, _ret_c) assert _ret is not None return _ret
def cause_changes_int_optional_returned(self, i, f, s, binar, b, d): with CPyBoxedI32.fromPyOpt(i) as pyopt_i,\ CPyString.fromPyOpt(s) as pyopt_s,\ CPyBinary.fromPy(binar) as pybin_binar: _ret_c = lib.cw__foo_receiver_cause_changes_int_optional_returned(self._cpp_impl, pyopt_i.release_djinni_boxed(), CPyPrimitive.fromPy(f), pyopt_s.release_djinni_string(), pybin_binar.release_djinni_binary(), CPyPrimitive.fromPy(b), CPyDate.fromPy(d)) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyBoxedI32.toPyOpt(_ret_c) return _ret
def set_private_int32(self, private_int): lib.cw__foo_interface_set_private_int32( self._cpp_impl, CPyPrimitive.fromPy(private_int)) CPyException.toPyCheckAndRaise(ffi.NULL)
def int32_inverse(self, x): _ret_c = lib.cw__foo_interface_int32_inverse(self._cpp_impl, CPyPrimitive.fromPy(x)) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyPrimitive.toPy(_ret_c) assert _ret is not None return _ret