ParaView
CPythonAdaptorAPI.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: CPythonAdaptorAPI.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 #ifndef CPythonAdaptorAPI_h
16 #define CPythonAdaptorAPI_h
17 
18 #include "vtkPVPythonCatalystModule.h"
19 
20 #include "CAdaptorAPI.h"
21 
22 // This code is meant to be used as an API for C simulation
23 // codes. To use with C codes, include this header file. Call the
24 // 'extern "C"' functions as named below for both Fortran and C.
25 // C code should include this header file to get the properly
26 // mangled function names. This extends CAdaptorAPI.h to add a new
27 // initialization function that takes a Python script and another
28 // function to add in extra Python scripts. Note that
29 // coprocessorinitializewithpython() isn't required to contain
30 // a Python script.
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 // call at the start of the simulation
37 void VTKPVPYTHONCATALYST_EXPORT coprocessorinitializewithpython(
38  char* pythonFileName, int* pythonFileNameLength);
39 
40 // add in another Catalyst Python pipeline script.
41 void VTKPVPYTHONCATALYST_EXPORT coprocessoraddpythonscript(
42  char* pythonFileName, int* pythonFileNameLength);
43 
44 #ifdef __cplusplus
45 } /* extern "C" */
46 #endif
47 
48 #endif
49 // VTK-HeaderTest-Exclude: CPythonAdaptorAPI.h
void VTKPVPYTHONCATALYST_EXPORT coprocessoraddpythonscript(char *pythonFileName, int *pythonFileNameLength)
void VTKPVPYTHONCATALYST_EXPORT coprocessorinitializewithpython(char *pythonFileName, int *pythonFileNameLength)