示例#1
0
 def update_static_messg_to(static_string):
     with CPyString.fromPy(static_string) as pys_static_string:
         _ret_c = lib.cw__foo_static_update_static_messg_to(pys_static_string.release_djinni_string())
         CPyException.toPyCheckAndRaise(_ret_c)
         _ret = CPyString.toPy(_ret_c)
         assert _ret is not None
         return _ret
示例#2
0
 def on_string_change(self, private_string):
     with CPyString.fromPy(private_string) as pys_private_string:
         _ret_c = lib.cw__foo_listener_bf_on_string_change(self._cpp_impl, pys_private_string.release_djinni_string())
         CPyException.toPyCheckAndRaise(_ret_c)
         _ret = CPyString.toPy(_ret_c)
         assert _ret is not None
         return _ret
示例#3
0
 def id_binary(b):
     with CPyBinary.fromPy(b) as pybin_b:
         _ret_c = lib.cw__test_helpers_id_binary(pybin_b.release_djinni_binary())
         CPyException.toPyCheckAndRaise(_ret_c)
         _ret = CPyBinary.toPy(_ret_c)
         assert _ret is not None
         return _ret
示例#4
0
 def get_set_strings(self, ps1, ps2):
     with CPyString.fromPy(ps1) as pys_ps1,\
             CPyString.fromPy(ps2) as pys_ps2:
         _ret_c = lib.cw__foo_interface_get_set_strings(self._cpp_impl, pys_ps1.release_djinni_string(), pys_ps2.release_djinni_string())
         CPyException.toPyCheckAndRaise(_ret_c)
         _ret = CPyString.toPy(_ret_c)
         assert _ret is not None
         return _ret
示例#5
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
示例#6
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
示例#7
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
示例#8
0
 def cause_changes_string_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_string_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 = CPyString.toPyOpt(_ret_c)
         return _ret
示例#9
0
 def set_bool(self, private_bool):
     lib.cw__foo_primitives_set_bool(self._cpp_impl, CPyPrimitive.fromPy(private_bool))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#10
0
 def get_containers_record(self):
     _ret_c = lib.cw__foo_containers_interface_get_containers_record(self._cpp_impl)
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyRecord.toPy(FooContainersRecord.c_data_set, _ret_c)
     assert _ret is not None
     return _ret
示例#11
0
 def get_list_binary(self):
     _ret_c = lib.cw__foo_containers_interface_get_list_binary(self._cpp_impl)
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyObject.toPy(ListBinaryHelper.c_data_set, _ret_c)
     assert _ret is not None
     return _ret
示例#12
0
 def set_list_record(self, lr):
     lib.cw__foo_containers_interface_set_list_record(self._cpp_impl, CPyObject.fromPy(ListRecordFooSomeOtherRecordHelper.c_data_set, lr))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#13
0
 def get_optional_containers_record(self):
     _ret_c = lib.cw__foo_containers_interface_get_optional_containers_record(
         self._cpp_impl)
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyRecord.toPyOpt(FooContainersRecord.c_data_set, _ret_c)
     return _ret
示例#14
0
 def set_list_record(self, lr):
     lib.cw__foo_containers_interface_set_list_record(
         self._cpp_impl,
         CPyObject.fromPy(ListRecordFooSomeOtherRecordHelper.c_data_set,
                          lr))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#15
0
 def create():
     _ret_c = lib.cw__foo_receiver_create()
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = FooReceiverHelper.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#16
0
 def get_static_counter():
     _ret_c = lib.cw__foo_static_get_static_counter()
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyPrimitive.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#17
0
 def set_listener_bf_in_listener_bf(self, listener):
     lib.cw__foo_receiver_set_listener_bf_in_listener_bf(
         self._cpp_impl, FooListenerBfHelper.fromPy(listener))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#18
0
 def set_binary_in_listener_bf_in_listener_bf(self, b):
     with CPyBinary.fromPy(b) as pybin_b:
         lib.cw__foo_receiver_set_binary_in_listener_bf_in_listener_bf(
             self._cpp_impl, pybin_b.release_djinni_binary())
         CPyException.toPyCheckAndRaise(ffi.NULL)
示例#19
0
 def get_listener_bf_string(self):
     _ret_c = lib.cw__foo_receiver_get_listener_bf_string(self._cpp_impl)
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyString.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#20
0
 def get_foo_listener_bf(self):
     _ret_c = lib.cw__foo_receiver_get_foo_listener_bf(self._cpp_impl)
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = FooListenerBfHelper.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#21
0
 def get_optional_listener(self):
     _ret_c = lib.cw__foo_receiver_get_optional_listener(self._cpp_impl)
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = FooListenerHelper.toPy(_ret_c)
     return _ret
示例#22
0
 def set_string(self, private_string):
     with CPyString.fromPy(private_string) as pys_private_string:
         lib.cw__foo_primitives_set_string(self._cpp_impl, pys_private_string.release_djinni_string())
         CPyException.toPyCheckAndRaise(ffi.NULL)
示例#23
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
示例#24
0
 def get_date(self):
     _ret_c = lib.cw__foo_primitives_get_date(self._cpp_impl)
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyDate.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#25
0
 def get_static_messg():
     _ret_c = lib.cw__foo_static_get_static_messg()
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyString.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#26
0
 def set_optional_list_int(self, m):
     lib.cw__foo_containers_interface_set_optional_list_int(
         self._cpp_impl, CPyObject.fromPyOpt(ListInt32THelper.c_data_set,
                                             m))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#27
0
 def check_enum_map(m):
     lib.cw__test_helpers_check_enum_map(CPyObjectProxy.fromPy(MapEnumColorStringHelper.c_data_set, MapEnumColorStringProxy(m)))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#28
0
 def add_optional_listener(self, listener):
     lib.cw__foo_receiver_add_optional_listener(
         self._cpp_impl, FooListenerHelper.fromPy(listener))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#29
0
 def check_enum(c):
     lib.cw__test_helpers_check_enum(CPyEnum.fromPy(c))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#30
0
 def get_optional_list_int(self):
     _ret_c = lib.cw__foo_containers_interface_get_optional_list_int(self._cpp_impl)
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyObject.toPyOpt(ListInt32THelper.c_data_set, _ret_c)
     return _ret
示例#31
0
 def create_cpp_token():
     _ret_c = lib.cw__test_helpers_create_cpp_token()
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = UserTokenHelper.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#32
0
 def set_list_binary(self, lb):
     lib.cw__foo_containers_interface_set_list_binary(self._cpp_impl, CPyObject.fromPy(ListBinaryHelper.c_data_set, lb))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#33
0
 def check_cpp_token(t):
     lib.cw__test_helpers_check_cpp_token(UserTokenHelper.fromPy(t))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#34
0
 def create():
     _ret_c = lib.cw__foo_containers_interface_create()
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = FooContainersInterfaceHelper.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#35
0
 def cpp_token_id(t):
     _ret_c = lib.cw__test_helpers_cpp_token_id(UserTokenHelper.fromPy(t))
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyPrimitive.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#36
0
 def set_optional_containers_record(self, rec):
     lib.cw__foo_containers_interface_set_optional_containers_record(self._cpp_impl, CPyRecord.fromPyOpt(FooContainersRecord.c_data_set, rec))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#37
0
 def check_token_type(t, type):
     with CPyString.fromPy(type) as pys_type:
         lib.cw__test_helpers_check_token_type(UserTokenHelper.fromPy(t), pys_type.release_djinni_string())
         CPyException.toPyCheckAndRaise(ffi.NULL)
示例#38
0
 def set_binary(self, private_binary):
     with CPyBinary.fromPy(private_binary) as pybin_private_binary:
         lib.cw__foo_primitives_set_binary(self._cpp_impl, pybin_private_binary.release_djinni_binary())
         CPyException.toPyCheckAndRaise(ffi.NULL)
示例#39
0
 def return_none():
     _ret_c = lib.cw__test_helpers_return_none()
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyBoxedI32.toPyOpt(_ret_c)
     return _ret
示例#40
0
 def set_date(self, private_date):
     lib.cw__foo_primitives_set_date(self._cpp_impl, CPyDate.fromPy(private_date))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#41
0
 def assorted_primitives_id(i):
     _ret_c = lib.cw__test_helpers_assorted_primitives_id(CPyRecord.fromPy(AssortedPrimitives.c_data_set, i))
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyRecord.toPy(AssortedPrimitives.c_data_set, _ret_c)
     assert _ret is not None
     return _ret
示例#42
0
 def create():
     _ret_c = lib.cw__foo_primitives_create()
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = FooPrimitivesHelper.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#43
0
 def set_private_string(self, private_string):
     with CPyString.fromPy(private_string) as pys_private_string:
         lib.cw__foo_interface_set_private_string(
             self._cpp_impl, pys_private_string.release_djinni_string())
         CPyException.toPyCheckAndRaise(ffi.NULL)
示例#44
0
 def set_optional_map_string_int(self, m):
     lib.cw__foo_containers_interface_set_optional_map_string_int(
         self._cpp_impl,
         CPyObjectProxy.fromPyOpt(MapStringInt32THelper.c_data_set,
                                  MapStringInt32TProxy(m)))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#45
0
 def set_containers_record(self, rec):
     lib.cw__foo_containers_interface_set_containers_record(
         self._cpp_impl,
         CPyRecord.fromPy(FooContainersRecord.c_data_set, rec))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#46
0
 def get_optional_list_int(self):
     _ret_c = lib.cw__foo_containers_interface_get_optional_list_int(
         self._cpp_impl)
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyObject.toPyOpt(ListInt32THelper.c_data_set, _ret_c)
     return _ret
示例#47
0
 def get_foo_primitives(self):
     _ret_c = lib.cw__foo_interface_get_foo_primitives(self._cpp_impl)
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = FooPrimitivesHelper.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#48
0
 def set_list_binary(self, lb):
     lib.cw__foo_containers_interface_set_list_binary(
         self._cpp_impl, CPyObject.fromPy(ListBinaryHelper.c_data_set, lb))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#49
0
 def cause_zero_division_error(self):
     lib.cw__foo_receiver_cause_zero_division_error(self._cpp_impl)
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#50
0
 def create():
     _ret_c = lib.cw__foo_interface_create()
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = FooInterfaceHelper.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#51
0
 def get_optional_map_string_int(self):
     _ret_c = lib.cw__foo_containers_interface_get_optional_map_string_int(self._cpp_impl)
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyObjectProxy.toPyObjOpt(MapStringInt32THelper.c_data_set, _ret_c)
     return _ret
示例#52
0
 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)
示例#53
0
 def set_optional_list_int(self, m):
     lib.cw__foo_containers_interface_set_optional_list_int(self._cpp_impl, CPyObject.fromPyOpt(ListInt32THelper.c_data_set, m))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#54
0
 def get_private_string(self):
     _ret_c = lib.cw__foo_interface_get_private_string(self._cpp_impl)
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyString.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#55
0
 def set_optional_map_string_int(self, m):
     lib.cw__foo_containers_interface_set_optional_map_string_int(self._cpp_impl, CPyObjectProxy.fromPyOpt(MapStringInt32THelper.c_data_set, MapStringInt32TProxy(m)))
     CPyException.toPyCheckAndRaise(ffi.NULL)