Clients
PythonCatalyst
CPythonAdaptorAPI.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-License-Identifier: BSD-3-Clause
3
#ifndef CPythonAdaptorAPI_h
4
#define CPythonAdaptorAPI_h
5
6
#include "
vtkPVPythonCatalystModule.h
"
7
8
#include "
CAdaptorAPI.h
"
9
10
// This code is meant to be used as an API for C simulation
11
// codes. To use with C codes, include this header file. Call the
12
// 'extern "C"' functions as named below for both Fortran and C.
13
// C code should include this header file to get the properly
14
// mangled function names. This extends CAdaptorAPI.h to add a new
15
// initialization function that takes a Python script and another
16
// function to add in extra Python scripts. Note that
17
// coprocessorinitializewithpython() isn't required to contain
18
// a Python script.
19
20
#ifdef __cplusplus
21
extern
"C"
22
{
23
#endif
24
25
// call at the start of the simulation
26
void
VTKPVPYTHONCATALYST_EXPORT
coprocessorinitializewithpython
(
27
char
* pythonFileName,
int
* pythonFileNameLength);
28
29
// add in another Catalyst Python pipeline script.
30
void
VTKPVPYTHONCATALYST_EXPORT
coprocessoraddpythonscript
(
31
char
* pythonFileName,
int
* pythonFileNameLength);
32
33
#ifdef __cplusplus
34
}
/* extern "C" */
35
#endif
36
37
#endif
VTKPVPYTHONCATALYST_EXPORT
#define VTKPVPYTHONCATALYST_EXPORT
Definition:
vtkPVPythonCatalystModule.h:15
coprocessoraddpythonscript
void VTKPVPYTHONCATALYST_EXPORT coprocessoraddpythonscript(char *pythonFileName, int *pythonFileNameLength)
coprocessorinitializewithpython
void VTKPVPYTHONCATALYST_EXPORT coprocessorinitializewithpython(char *pythonFileName, int *pythonFileNameLength)
CAdaptorAPI.h
vtkPVPythonCatalystModule.h
Generated by
1.8.13 on Tue Oct 1 2024