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 
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
27  char* pythonFileName, int* pythonFileNameLength);
28 
29  // add in another Catalyst Python pipeline script.
31  char* pythonFileName, int* pythonFileNameLength);
32 
33 #ifdef __cplusplus
34 } /* extern "C" */
35 #endif
36 
37 #endif
#define VTKPVPYTHONCATALYST_EXPORT
void VTKPVPYTHONCATALYST_EXPORT coprocessoraddpythonscript(char *pythonFileName, int *pythonFileNameLength)
void VTKPVPYTHONCATALYST_EXPORT coprocessorinitializewithpython(char *pythonFileName, int *pythonFileNameLength)