本文整理汇总了Python中djinni.exception.CPyException.toPyCheckAndRaise方法的典型用法代码示例。如果您正苦于以下问题:Python CPyException.toPyCheckAndRaise方法的具体用法?Python CPyException.toPyCheckAndRaise怎么用?Python CPyException.toPyCheckAndRaise使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类djinni.exception.CPyException
的用法示例。
在下文中一共展示了CPyException.toPyCheckAndRaise方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: update_static_messg_to
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
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: on_string_change
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
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: id_binary
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
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: get_set_strings
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
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: cause_changes_int_returned
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
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: cause_changes_int_optional_returned
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
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: set_list_binary
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
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)
示例8: set_list_record
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
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)
示例9: get_optional_list_int
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
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
示例10: set_optional_list_int
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
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)
示例11: check_enum
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
def check_enum(c):
lib.cw__test_helpers_check_enum(CPyEnum.fromPy(c))
CPyException.toPyCheckAndRaise(ffi.NULL)
示例12: set_bool
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
def set_bool(self, private_bool):
lib.cw__foo_primitives_set_bool(self._cpp_impl, CPyPrimitive.fromPy(private_bool))
CPyException.toPyCheckAndRaise(ffi.NULL)
示例13: get_containers_record
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
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
示例14: assorted_primitives_id
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
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
示例15: return_none
# 需要导入模块: from djinni.exception import CPyException [as 别名]
# 或者: from djinni.exception.CPyException import toPyCheckAndRaise [as 别名]
def return_none():
_ret_c = lib.cw__test_helpers_return_none()
CPyException.toPyCheckAndRaise(_ret_c)
_ret = CPyBoxedI32.toPyOpt(_ret_c)
return _ret