Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 4
0
 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
Exemplo n.º 5
0
 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
Exemplo n.º 6
0
 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
Exemplo n.º 7
0
 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
Exemplo n.º 8
0
 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
Exemplo n.º 9
0
 def set_date(self, private_date):
     lib.cw__foo_primitives_set_date(self._cpp_impl, CPyDate.fromPy(private_date))
     CPyException.toPyCheckAndRaise(ffi.NULL)
Exemplo n.º 10
0
 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
Exemplo n.º 11
0
 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
Exemplo n.º 12
0
 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
Exemplo n.º 13
0
 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