diff --git a/src/ansys/dpf/gate/generated/capi.py b/src/ansys/dpf/gate/generated/capi.py index 6559ff4fae..72d7a23fdf 100644 --- a/src/ansys/dpf/gate/generated/capi.py +++ b/src/ansys/dpf/gate/generated/capi.py @@ -295,6 +295,18 @@ def load_api(path): dll.Client_get_protocol_name.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) dll.Client_get_protocol_name.restype = ctypes.POINTER(ctypes.c_char) + if hasattr(dll, "Client_has_local_server"): + dll.Client_has_local_server.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) + dll.Client_has_local_server.restype = ctypes.c_bool + + if hasattr(dll, "Client_set_local_server"): + dll.Client_set_local_server.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) + dll.Client_set_local_server.restype = None + + if hasattr(dll, "Client_get_local_server"): + dll.Client_get_local_server.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) + dll.Client_get_local_server.restype = ctypes.c_void_p + #------------------------------------------------------------------------------- # Collection #------------------------------------------------------------------------------- @@ -1835,18 +1847,10 @@ def load_api(path): dll.CSField_SetData.argtypes = (ctypes.c_void_p, ctypes.c_int32, ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) dll.CSField_SetData.restype = None - if hasattr(dll, "CSField_SetDataWithCollection"): - dll.CSField_SetDataWithCollection.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) - dll.CSField_SetDataWithCollection.restype = None - if hasattr(dll, "CSField_SetDataPointer"): dll.CSField_SetDataPointer.argtypes = (ctypes.c_void_p, ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) dll.CSField_SetDataPointer.restype = None - if hasattr(dll, "CSField_SetDataPointerWithCollection"): - dll.CSField_SetDataPointerWithCollection.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) - dll.CSField_SetDataPointerWithCollection.restype = None - if hasattr(dll, "CSField_SetEntityData"): dll.CSField_SetEntityData.argtypes = (ctypes.c_void_p, ctypes.c_int32, ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) dll.CSField_SetEntityData.restype = None @@ -3233,14 +3237,6 @@ def load_api(path): dll.CSPropertyField_SetData.argtypes = (ctypes.c_void_p, ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) dll.CSPropertyField_SetData.restype = None - if hasattr(dll, "CSPropertyField_SetDataWithCollection"): - dll.CSPropertyField_SetDataWithCollection.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) - dll.CSPropertyField_SetDataWithCollection.restype = None - - if hasattr(dll, "CSPropertyField_SetDataPointerWithCollection"): - dll.CSPropertyField_SetDataPointerWithCollection.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) - dll.CSPropertyField_SetDataPointerWithCollection.restype = None - if hasattr(dll, "CSPropertyField_SetDataPointer"): dll.CSPropertyField_SetDataPointer.argtypes = (ctypes.c_void_p, ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) dll.CSPropertyField_SetDataPointer.restype = None @@ -3684,10 +3680,6 @@ def load_api(path): dll.Scoping_SetIds.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) dll.Scoping_SetIds.restype = None - if hasattr(dll, "Scoping_SetIdsWithCollection"): - dll.Scoping_SetIdsWithCollection.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) - dll.Scoping_SetIdsWithCollection.restype = None - if hasattr(dll, "Scoping_GetIds"): dll.Scoping_GetIds.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) dll.Scoping_GetIds.restype = ctypes.POINTER(ctypes.c_int32) @@ -4098,14 +4090,6 @@ def load_api(path): dll.CSCustomTypeField_PushBack.argtypes = (ctypes.c_void_p, ctypes.c_int32, ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) dll.CSCustomTypeField_PushBack.restype = None - if hasattr(dll, "CSCustomTypeField_SetDataWithCollection"): - dll.CSCustomTypeField_SetDataWithCollection.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) - dll.CSCustomTypeField_SetDataWithCollection.restype = None - - if hasattr(dll, "CSCustomTypeField_SetDataPointerWithCollection"): - dll.CSCustomTypeField_SetDataPointerWithCollection.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) - dll.CSCustomTypeField_SetDataPointerWithCollection.restype = None - if hasattr(dll, "CSCustomTypeField_Resize"): dll.CSCustomTypeField_Resize.argtypes = (ctypes.c_void_p, ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) dll.CSCustomTypeField_Resize.restype = None diff --git a/src/ansys/dpf/gate/generated/client_abstract_api.py b/src/ansys/dpf/gate/generated/client_abstract_api.py index 09a3ad5026..5107868fb3 100644 --- a/src/ansys/dpf/gate/generated/client_abstract_api.py +++ b/src/ansys/dpf/gate/generated/client_abstract_api.py @@ -27,3 +27,15 @@ def client_get_full_address(client): def client_get_protocol_name(client): raise NotImplementedError + @staticmethod + def client_has_local_server(client): + raise NotImplementedError + + @staticmethod + def client_set_local_server(client, server_streams): + raise NotImplementedError + + @staticmethod + def client_get_local_server(client): + raise NotImplementedError + diff --git a/src/ansys/dpf/gate/generated/client_capi.py b/src/ansys/dpf/gate/generated/client_capi.py index 08b288e89d..4fcf96e685 100644 --- a/src/ansys/dpf/gate/generated/client_capi.py +++ b/src/ansys/dpf/gate/generated/client_capi.py @@ -57,3 +57,30 @@ def client_get_protocol_name(client): capi.dll.DataProcessing_String_post_event(res, ctypes.byref(errorSize), ctypes.byref(sError)) return newres + @staticmethod + def client_has_local_server(client): + errorSize = ctypes.c_int(0) + sError = ctypes.c_wchar_p() + res = capi.dll.Client_has_local_server(client._internal_obj if client is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError)) + if errorSize.value != 0: + raise errors.DPFServerException(sError.value) + return res + + @staticmethod + def client_set_local_server(client, server_streams): + errorSize = ctypes.c_int(0) + sError = ctypes.c_wchar_p() + res = capi.dll.Client_set_local_server(client._internal_obj if client is not None else None, server_streams._internal_obj if server_streams is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError)) + if errorSize.value != 0: + raise errors.DPFServerException(sError.value) + return res + + @staticmethod + def client_get_local_server(client): + errorSize = ctypes.c_int(0) + sError = ctypes.c_wchar_p() + res = capi.dll.Client_get_local_server(client._internal_obj if client is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError)) + if errorSize.value != 0: + raise errors.DPFServerException(sError.value) + return res + diff --git a/src/ansys/dpf/gate/generated/custom_type_field_abstract_api.py b/src/ansys/dpf/gate/generated/custom_type_field_abstract_api.py index 349f2a191b..6c23a3d69d 100644 --- a/src/ansys/dpf/gate/generated/custom_type_field_abstract_api.py +++ b/src/ansys/dpf/gate/generated/custom_type_field_abstract_api.py @@ -71,14 +71,6 @@ def cscustom_type_field_set_cscoping(field, scoping): def cscustom_type_field_push_back(field, EntityId, size, data): raise NotImplementedError - @staticmethod - def cscustom_type_field_set_data_with_collection(field, data): - raise NotImplementedError - - @staticmethod - def cscustom_type_field_set_data_pointer_with_collection(field, data): - raise NotImplementedError - @staticmethod def cscustom_type_field_resize(field, dataSize, scopingSize): raise NotImplementedError diff --git a/src/ansys/dpf/gate/generated/custom_type_field_capi.py b/src/ansys/dpf/gate/generated/custom_type_field_capi.py index d9f72cc611..091aa46fcb 100644 --- a/src/ansys/dpf/gate/generated/custom_type_field_capi.py +++ b/src/ansys/dpf/gate/generated/custom_type_field_capi.py @@ -152,24 +152,6 @@ def cscustom_type_field_push_back(field, EntityId, size, data): raise errors.DPFServerException(sError.value) return res - @staticmethod - def cscustom_type_field_set_data_with_collection(field, data): - errorSize = ctypes.c_int(0) - sError = ctypes.c_wchar_p() - res = capi.dll.CSCustomTypeField_SetDataWithCollection(field._internal_obj if field is not None else None, data._internal_obj if data is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError)) - if errorSize.value != 0: - raise errors.DPFServerException(sError.value) - return res - - @staticmethod - def cscustom_type_field_set_data_pointer_with_collection(field, data): - errorSize = ctypes.c_int(0) - sError = ctypes.c_wchar_p() - res = capi.dll.CSCustomTypeField_SetDataPointerWithCollection(field._internal_obj if field is not None else None, data._internal_obj if data is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError)) - if errorSize.value != 0: - raise errors.DPFServerException(sError.value) - return res - @staticmethod def cscustom_type_field_resize(field, dataSize, scopingSize): errorSize = ctypes.c_int(0) diff --git a/src/ansys/dpf/gate/generated/field_abstract_api.py b/src/ansys/dpf/gate/generated/field_abstract_api.py index 7d54c3346f..ae7d34f962 100644 --- a/src/ansys/dpf/gate/generated/field_abstract_api.py +++ b/src/ansys/dpf/gate/generated/field_abstract_api.py @@ -95,18 +95,10 @@ def csfield_get_data(field, size): def csfield_set_data(field, size, data): raise NotImplementedError - @staticmethod - def csfield_set_data_with_collection(field, data): - raise NotImplementedError - @staticmethod def csfield_set_data_pointer(field, size, data): raise NotImplementedError - @staticmethod - def csfield_set_data_pointer_with_collection(field, data): - raise NotImplementedError - @staticmethod def csfield_set_entity_data(field, index, id, size, data): raise NotImplementedError diff --git a/src/ansys/dpf/gate/generated/field_capi.py b/src/ansys/dpf/gate/generated/field_capi.py index 82e8d65782..1da7125b3b 100644 --- a/src/ansys/dpf/gate/generated/field_capi.py +++ b/src/ansys/dpf/gate/generated/field_capi.py @@ -210,15 +210,6 @@ def csfield_set_data(field, size, data): raise errors.DPFServerException(sError.value) return res - @staticmethod - def csfield_set_data_with_collection(field, data): - errorSize = ctypes.c_int(0) - sError = ctypes.c_wchar_p() - res = capi.dll.CSField_SetDataWithCollection(field._internal_obj if field is not None else None, data._internal_obj if data is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError)) - if errorSize.value != 0: - raise errors.DPFServerException(sError.value) - return res - @staticmethod def csfield_set_data_pointer(field, size, data): errorSize = ctypes.c_int(0) @@ -228,15 +219,6 @@ def csfield_set_data_pointer(field, size, data): raise errors.DPFServerException(sError.value) return res - @staticmethod - def csfield_set_data_pointer_with_collection(field, data): - errorSize = ctypes.c_int(0) - sError = ctypes.c_wchar_p() - res = capi.dll.CSField_SetDataPointerWithCollection(field._internal_obj if field is not None else None, data._internal_obj if data is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError)) - if errorSize.value != 0: - raise errors.DPFServerException(sError.value) - return res - @staticmethod def csfield_set_entity_data(field, index, id, size, data): errorSize = ctypes.c_int(0) diff --git a/src/ansys/dpf/gate/generated/property_field_abstract_api.py b/src/ansys/dpf/gate/generated/property_field_abstract_api.py index f883af1cf3..9b7f11c2f5 100644 --- a/src/ansys/dpf/gate/generated/property_field_abstract_api.py +++ b/src/ansys/dpf/gate/generated/property_field_abstract_api.py @@ -95,14 +95,6 @@ def csproperty_field_push_back(field, EntityId, size, data): def csproperty_field_set_data(field, size, data): raise NotImplementedError - @staticmethod - def csproperty_field_set_data_with_collection(field, data): - raise NotImplementedError - - @staticmethod - def csproperty_field_set_data_pointer_with_collection(field, data): - raise NotImplementedError - @staticmethod def csproperty_field_set_data_pointer(field, size, data): raise NotImplementedError diff --git a/src/ansys/dpf/gate/generated/property_field_capi.py b/src/ansys/dpf/gate/generated/property_field_capi.py index fcc7eb4fd1..0dadcc306b 100644 --- a/src/ansys/dpf/gate/generated/property_field_capi.py +++ b/src/ansys/dpf/gate/generated/property_field_capi.py @@ -208,24 +208,6 @@ def csproperty_field_set_data(field, size, data): raise errors.DPFServerException(sError.value) return res - @staticmethod - def csproperty_field_set_data_with_collection(field, data): - errorSize = ctypes.c_int(0) - sError = ctypes.c_wchar_p() - res = capi.dll.CSPropertyField_SetDataWithCollection(field._internal_obj if field is not None else None, data._internal_obj if data is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError)) - if errorSize.value != 0: - raise errors.DPFServerException(sError.value) - return res - - @staticmethod - def csproperty_field_set_data_pointer_with_collection(field, data): - errorSize = ctypes.c_int(0) - sError = ctypes.c_wchar_p() - res = capi.dll.CSPropertyField_SetDataPointerWithCollection(field._internal_obj if field is not None else None, data._internal_obj if data is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError)) - if errorSize.value != 0: - raise errors.DPFServerException(sError.value) - return res - @staticmethod def csproperty_field_set_data_pointer(field, size, data): errorSize = ctypes.c_int(0) diff --git a/src/ansys/dpf/gate/generated/scoping_abstract_api.py b/src/ansys/dpf/gate/generated/scoping_abstract_api.py index aba4018dc9..a10b1d3569 100644 --- a/src/ansys/dpf/gate/generated/scoping_abstract_api.py +++ b/src/ansys/dpf/gate/generated/scoping_abstract_api.py @@ -35,10 +35,6 @@ def scoping_get_data(scoping, location, size): def scoping_set_ids(scoping, ids, size): raise NotImplementedError - @staticmethod - def scoping_set_ids_with_collection(scoping, ids): - raise NotImplementedError - @staticmethod def scoping_get_ids(scoping, size): raise NotImplementedError diff --git a/src/ansys/dpf/gate/generated/scoping_capi.py b/src/ansys/dpf/gate/generated/scoping_capi.py index 146b290c94..e77679b45c 100644 --- a/src/ansys/dpf/gate/generated/scoping_capi.py +++ b/src/ansys/dpf/gate/generated/scoping_capi.py @@ -71,15 +71,6 @@ def scoping_set_ids(scoping, ids, size): raise errors.DPFServerException(sError.value) return res - @staticmethod - def scoping_set_ids_with_collection(scoping, ids): - errorSize = ctypes.c_int(0) - sError = ctypes.c_wchar_p() - res = capi.dll.Scoping_SetIdsWithCollection(scoping._internal_obj if scoping is not None else None, ids._internal_obj if ids is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError)) - if errorSize.value != 0: - raise errors.DPFServerException(sError.value) - return res - @staticmethod def scoping_get_ids(scoping, size): errorSize = ctypes.c_int(0) diff --git a/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll b/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll index 351706628d..a41c25169a 100644 Binary files a/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll and b/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll differ diff --git a/src/ansys/dpf/gatebin/DPFClientAPI.dll b/src/ansys/dpf/gatebin/DPFClientAPI.dll index 76202e0745..73f93fd269 100644 Binary files a/src/ansys/dpf/gatebin/DPFClientAPI.dll and b/src/ansys/dpf/gatebin/DPFClientAPI.dll differ diff --git a/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so b/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so index 2bfc9c5d31..547e5a4bac 100644 Binary files a/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so and b/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so differ diff --git a/src/ansys/dpf/gatebin/libDPFClientAPI.so b/src/ansys/dpf/gatebin/libDPFClientAPI.so index e05fe79303..0d78181644 100644 Binary files a/src/ansys/dpf/gatebin/libDPFClientAPI.so and b/src/ansys/dpf/gatebin/libDPFClientAPI.so differ