Skip to content
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

Update generated code for DPF 252_channel2 on master #2041

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
40 changes: 12 additions & 28 deletions src/ansys/dpf/gate/generated/capi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions src/ansys/dpf/gate/generated/client_abstract_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

27 changes: 27 additions & 0 deletions src/ansys/dpf/gate/generated/client_capi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 0 additions & 18 deletions src/ansys/dpf/gate/generated/custom_type_field_capi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 0 additions & 8 deletions src/ansys/dpf/gate/generated/field_abstract_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 0 additions & 18 deletions src/ansys/dpf/gate/generated/field_capi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
8 changes: 0 additions & 8 deletions src/ansys/dpf/gate/generated/property_field_abstract_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 0 additions & 18 deletions src/ansys/dpf/gate/generated/property_field_capi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 0 additions & 4 deletions src/ansys/dpf/gate/generated/scoping_abstract_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 0 additions & 9 deletions src/ansys/dpf/gate/generated/scoping_capi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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