Skip to content

Commit cefaff8

Browse files
rafacantongithub-actions[bot]
authored andcommitted
update generated code
1 parent 3281872 commit cefaff8

File tree

8 files changed

+127
-8
lines changed

8 files changed

+127
-8
lines changed

doc/source/_static/dpf_operators.html

Lines changed: 8 additions & 8 deletions
Large diffs are not rendered by default.

src/ansys/dpf/gate/generated/capi.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,10 +1212,38 @@ def load_api(path):
12121212
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), )
12131213
dll.DpfDataTree_getVecDoubleAttribute.restype = None
12141214

1215+
if hasattr(dll, "DpfDataTree_getIntAttributeWithCheck"):
1216+
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), )
1217+
dll.DpfDataTree_getIntAttributeWithCheck.restype = None
1218+
1219+
if hasattr(dll, "DpfDataTree_getUnsignedIntAttributeWithCheck"):
1220+
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), )
1221+
dll.DpfDataTree_getUnsignedIntAttributeWithCheck.restype = None
1222+
1223+
if hasattr(dll, "DpfDataTree_getDoubleAttributeWithCheck"):
1224+
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), )
1225+
dll.DpfDataTree_getDoubleAttributeWithCheck.restype = None
1226+
1227+
if hasattr(dll, "DpfDataTree_getStringAttributeWithCheck"):
1228+
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), )
1229+
dll.DpfDataTree_getStringAttributeWithCheck.restype = None
1230+
1231+
if hasattr(dll, "DpfDataTree_getVecIntAttributeWithCheck"):
1232+
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), )
1233+
dll.DpfDataTree_getVecIntAttributeWithCheck.restype = None
1234+
1235+
if hasattr(dll, "DpfDataTree_getVecDoubleAttributeWithCheck"):
1236+
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), )
1237+
dll.DpfDataTree_getVecDoubleAttributeWithCheck.restype = None
1238+
12151239
if hasattr(dll, "DpfDataTree_getStringCollectionAttribute"):
12161240
dll.DpfDataTree_getStringCollectionAttribute.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
12171241
dll.DpfDataTree_getStringCollectionAttribute.restype = ctypes.c_void_p
12181242

1243+
if hasattr(dll, "DpfDataTree_getStringCollectionAttributeWithCheck"):
1244+
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), )
1245+
dll.DpfDataTree_getStringCollectionAttributeWithCheck.restype = ctypes.c_void_p
1246+
12191247
if hasattr(dll, "DpfDataTree_setIntAttribute"):
12201248
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), )
12211249
dll.DpfDataTree_setIntAttribute.restype = None

src/ansys/dpf/gate/generated/dpf_data_tree_abstract_api.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,38 @@ def dpf_data_tree_get_vec_int_attribute(data_tree, attribute_name, data, size):
6767
def dpf_data_tree_get_vec_double_attribute(data_tree, attribute_name, data, size):
6868
raise NotImplementedError
6969

70+
@staticmethod
71+
def dpf_data_tree_get_int_attribute_with_check(data_tree, attribute_name, value, value_found):
72+
raise NotImplementedError
73+
74+
@staticmethod
75+
def dpf_data_tree_get_unsigned_int_attribute_with_check(data_tree, attribute_name, value, value_found):
76+
raise NotImplementedError
77+
78+
@staticmethod
79+
def dpf_data_tree_get_double_attribute_with_check(data_tree, attribute_name, value, value_found):
80+
raise NotImplementedError
81+
82+
@staticmethod
83+
def dpf_data_tree_get_string_attribute_with_check(data_tree, attribute_name, data, size, value_found):
84+
raise NotImplementedError
85+
86+
@staticmethod
87+
def dpf_data_tree_get_vec_int_attribute_with_check(data_tree, attribute_name, data, size, value_found):
88+
raise NotImplementedError
89+
90+
@staticmethod
91+
def dpf_data_tree_get_vec_double_attribute_with_check(data_tree, attribute_name, data, size, value_found):
92+
raise NotImplementedError
93+
7094
@staticmethod
7195
def dpf_data_tree_get_string_collection_attribute(data_tree, attribute_name):
7296
raise NotImplementedError
7397

98+
@staticmethod
99+
def dpf_data_tree_get_string_collection_attribute_with_check(data_tree, attribute_name, value_found):
100+
raise NotImplementedError
101+
74102
@staticmethod
75103
def dpf_data_tree_set_int_attribute(data_tree, attribute_name, value):
76104
raise NotImplementedError

0 commit comments

Comments
 (0)