Skip to content

Update generated code for DPF 252_bclappe_fix_load_library_collision on master #2226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions doc/source/_static/dpf_operators.html

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions src/ansys/dpf/gate/generated/capi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1212,10 +1212,38 @@ def load_api(path):
dll.DpfDataTree_getVecDoubleAttribute.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.POINTER(ctypes.c_double)), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
dll.DpfDataTree_getVecDoubleAttribute.restype = None

if hasattr(dll, "DpfDataTree_getIntAttributeWithCheck"):
dll.DpfDataTree_getIntAttributeWithCheck.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_bool), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
dll.DpfDataTree_getIntAttributeWithCheck.restype = None

if hasattr(dll, "DpfDataTree_getUnsignedIntAttributeWithCheck"):
dll.DpfDataTree_getUnsignedIntAttributeWithCheck.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.c_void_p, ctypes.POINTER(ctypes.c_bool), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
dll.DpfDataTree_getUnsignedIntAttributeWithCheck.restype = None

if hasattr(dll, "DpfDataTree_getDoubleAttributeWithCheck"):
dll.DpfDataTree_getDoubleAttributeWithCheck.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_bool), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
dll.DpfDataTree_getDoubleAttributeWithCheck.restype = None

if hasattr(dll, "DpfDataTree_getStringAttributeWithCheck"):
dll.DpfDataTree_getStringAttributeWithCheck.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_bool), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
dll.DpfDataTree_getStringAttributeWithCheck.restype = None

if hasattr(dll, "DpfDataTree_getVecIntAttributeWithCheck"):
dll.DpfDataTree_getVecIntAttributeWithCheck.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.POINTER(ctypes.c_int32)), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_bool), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
dll.DpfDataTree_getVecIntAttributeWithCheck.restype = None

if hasattr(dll, "DpfDataTree_getVecDoubleAttributeWithCheck"):
dll.DpfDataTree_getVecDoubleAttributeWithCheck.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.POINTER(ctypes.c_double)), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_bool), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
dll.DpfDataTree_getVecDoubleAttributeWithCheck.restype = None

if hasattr(dll, "DpfDataTree_getStringCollectionAttribute"):
dll.DpfDataTree_getStringCollectionAttribute.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
dll.DpfDataTree_getStringCollectionAttribute.restype = ctypes.c_void_p

if hasattr(dll, "DpfDataTree_getStringCollectionAttributeWithCheck"):
dll.DpfDataTree_getStringCollectionAttributeWithCheck.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_bool), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
dll.DpfDataTree_getStringCollectionAttributeWithCheck.restype = ctypes.c_void_p

if hasattr(dll, "DpfDataTree_setIntAttribute"):
dll.DpfDataTree_setIntAttribute.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
dll.DpfDataTree_setIntAttribute.restype = None
Expand Down
28 changes: 28 additions & 0 deletions src/ansys/dpf/gate/generated/dpf_data_tree_abstract_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,38 @@ def dpf_data_tree_get_vec_int_attribute(data_tree, attribute_name, data, size):
def dpf_data_tree_get_vec_double_attribute(data_tree, attribute_name, data, size):
raise NotImplementedError

@staticmethod
def dpf_data_tree_get_int_attribute_with_check(data_tree, attribute_name, value, value_found):
raise NotImplementedError

@staticmethod
def dpf_data_tree_get_unsigned_int_attribute_with_check(data_tree, attribute_name, value, value_found):
raise NotImplementedError

@staticmethod
def dpf_data_tree_get_double_attribute_with_check(data_tree, attribute_name, value, value_found):
raise NotImplementedError

@staticmethod
def dpf_data_tree_get_string_attribute_with_check(data_tree, attribute_name, data, size, value_found):
raise NotImplementedError

@staticmethod
def dpf_data_tree_get_vec_int_attribute_with_check(data_tree, attribute_name, data, size, value_found):
raise NotImplementedError

@staticmethod
def dpf_data_tree_get_vec_double_attribute_with_check(data_tree, attribute_name, data, size, value_found):
raise NotImplementedError

@staticmethod
def dpf_data_tree_get_string_collection_attribute(data_tree, attribute_name):
raise NotImplementedError

@staticmethod
def dpf_data_tree_get_string_collection_attribute_with_check(data_tree, attribute_name, value_found):
raise NotImplementedError

@staticmethod
def dpf_data_tree_set_int_attribute(data_tree, attribute_name, value):
raise NotImplementedError
Expand Down
63 changes: 63 additions & 0 deletions src/ansys/dpf/gate/generated/dpf_data_tree_capi.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,60 @@ def dpf_data_tree_get_vec_double_attribute(data_tree, attribute_name, data, size
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def dpf_data_tree_get_int_attribute_with_check(data_tree, attribute_name, value, value_found):
errorSize = ctypes.c_int(0)
sError = ctypes.c_wchar_p()
res = capi.dll.DpfDataTree_getIntAttributeWithCheck(data_tree._internal_obj if data_tree is not None else None, utils.to_char_ptr(attribute_name), utils.to_int32_ptr(value), value_found, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
if errorSize.value != 0:
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def dpf_data_tree_get_unsigned_int_attribute_with_check(data_tree, attribute_name, value, value_found):
errorSize = ctypes.c_int(0)
sError = ctypes.c_wchar_p()
res = capi.dll.DpfDataTree_getUnsignedIntAttributeWithCheck(data_tree._internal_obj if data_tree is not None else None, utils.to_char_ptr(attribute_name), value, value_found, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
if errorSize.value != 0:
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def dpf_data_tree_get_double_attribute_with_check(data_tree, attribute_name, value, value_found):
errorSize = ctypes.c_int(0)
sError = ctypes.c_wchar_p()
res = capi.dll.DpfDataTree_getDoubleAttributeWithCheck(data_tree._internal_obj if data_tree is not None else None, utils.to_char_ptr(attribute_name), utils.to_double_ptr(value), value_found, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
if errorSize.value != 0:
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def dpf_data_tree_get_string_attribute_with_check(data_tree, attribute_name, data, size, value_found):
errorSize = ctypes.c_int(0)
sError = ctypes.c_wchar_p()
res = capi.dll.DpfDataTree_getStringAttributeWithCheck(data_tree._internal_obj if data_tree is not None else None, utils.to_char_ptr(attribute_name), utils.to_char_ptr_ptr(data), utils.to_int32_ptr(size), value_found, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
if errorSize.value != 0:
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def dpf_data_tree_get_vec_int_attribute_with_check(data_tree, attribute_name, data, size, value_found):
errorSize = ctypes.c_int(0)
sError = ctypes.c_wchar_p()
res = capi.dll.DpfDataTree_getVecIntAttributeWithCheck(data_tree._internal_obj if data_tree is not None else None, utils.to_char_ptr(attribute_name), utils.to_int32_ptr_ptr(data), utils.to_int32_ptr(size), value_found, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
if errorSize.value != 0:
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def dpf_data_tree_get_vec_double_attribute_with_check(data_tree, attribute_name, data, size, value_found):
errorSize = ctypes.c_int(0)
sError = ctypes.c_wchar_p()
res = capi.dll.DpfDataTree_getVecDoubleAttributeWithCheck(data_tree._internal_obj if data_tree is not None else None, utils.to_char_ptr(attribute_name), utils.to_double_ptr_ptr(data), utils.to_int32_ptr(size), value_found, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
if errorSize.value != 0:
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def dpf_data_tree_get_string_collection_attribute(data_tree, attribute_name):
errorSize = ctypes.c_int(0)
Expand All @@ -152,6 +206,15 @@ def dpf_data_tree_get_string_collection_attribute(data_tree, attribute_name):
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def dpf_data_tree_get_string_collection_attribute_with_check(data_tree, attribute_name, value_found):
errorSize = ctypes.c_int(0)
sError = ctypes.c_wchar_p()
res = capi.dll.DpfDataTree_getStringCollectionAttributeWithCheck(data_tree._internal_obj if data_tree is not None else None, utils.to_char_ptr(attribute_name), value_found, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
if errorSize.value != 0:
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def dpf_data_tree_set_int_attribute(data_tree, attribute_name, value):
errorSize = ctypes.c_int(0)
Expand Down
Binary file modified src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll
Binary file not shown.
Binary file modified src/ansys/dpf/gatebin/DPFClientAPI.dll
Binary file not shown.
Binary file modified src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so
Binary file not shown.
Binary file modified src/ansys/dpf/gatebin/libDPFClientAPI.so
Binary file not shown.
Loading