def get_my_record_f6(cself): try: _ret = CPyDate.fromPy(CPyRecord.toPy(None, cself).test4) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def on_changes_date_returned(cself, i, f, s, binar, b, d): try: _ret = CPyDate.fromPy(FooListenerHelper.selfToPy(cself).on_changes_date_returned(CPyPrimitive.toPy(i), CPyPrimitive.toPy(f), CPyString.toPy(s), CPyBinary.toPy(binar), CPyPrimitive.toPy(b), CPyDate.toPy(d))) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_record_with_derivings_f7(cself): try: _ret = CPyDate.fromPy(CPyRecord.toPy(None, cself).d) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def __get_elem(cself, index): try: _ret = CPyDate.fromPy(CPyObject.toPy(None, cself)[index]) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_all_datatypes_f10(cself): try: _ret = CPyDate.fromPy(CPyRecord.toPy(None, cself).dateData) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
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 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 set_date(self, private_date): lib.cw__foo_primitives_set_date(self._cpp_impl, CPyDate.fromPy(private_date)) CPyException.toPyCheckAndRaise(ffi.NULL)
def date_id(d): _ret_c = lib.cw__foo_static_date_id(CPyDate.fromPy(d)) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyDate.toPy(_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 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