vtkCPPythonStringPipeline.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef vtkCPPythonStringPipeline_h
4 #define vtkCPPythonStringPipeline_h
5 
6 #include "vtkCPPythonPipeline.h"
7 #include "vtkPVPythonCatalystModule.h" // For windows import/export of shared libraries
8 #include <string> // For data member
9 
11 
16 {
17 public:
20  void PrintSelf(ostream& os, vtkIndent indent) override;
21 
25  int Initialize(const char* pythonString);
26 
34  int RequestDataDescription(vtkCPDataDescription* dataDescription) override;
35 
37  int CoProcess(vtkCPDataDescription* dataDescription) override;
38 
41  int Finalize() override;
42 
43 protected:
45  ~vtkCPPythonStringPipeline() override;
46 
47 private:
49  void operator=(const vtkCPPythonStringPipeline&) = delete;
50 
52  std::string ModuleName;
53 };
54 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTKPVPYTHONCATALYST_EXPORT
Class that creates a coprocessing pipeline from a coprocessing string.
virtual int RequestDataDescription(vtkCPDataDescription *dataDescription)=0
Configuration Step: The coprocessor first determines if any coprocessing needs to be done at this Tim...
virtual int CoProcess(vtkCPDataDescription *dataDescription)=0
Execute the pipeline. Returns 1 for success and 0 for failure.
Abstract class that takes care of initializing Catalyst Python pipelines for all concrete implementat...
virtual int Finalize()
Finalize the pipeline before deleting it.
static vtkObject * New()
This class provides the description of the data for the coprocessor pipelines.