vtkCPPythonPipeline.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef vtkCPPythonPipeline_h
4 #define vtkCPPythonPipeline_h
5 
6 #include "vtkCPPipeline.h"
7 #include "vtkPVPythonCatalystModule.h" // For windows import/export of shared libraries
8 #include "vtkSmartPointer.h" // for vtkSmartPointer
9 #include <string> // For member function use
10 
12 
18 {
19 public:
21  void PrintSelf(ostream& os, vtkIndent indent) override;
22 
28  static int DetectScriptVersion(const char* fname);
29 
36  static vtkSmartPointer<vtkCPPythonPipeline> CreatePipeline(
37  const char* fname, int default_version = 1);
38 
45  static vtkSmartPointer<vtkCPPythonPipeline> CreateAndInitializePipeline(
46  const char* fname, int default_version = 1);
47 
49 
55  static vtkCPPythonPipeline* NewPipeline(const char* fname, int default_version = 1);
57  static vtkCPPythonPipeline* NewAndInitializePipeline(const char* fname, int default_version = 1);
59 protected:
62  void FixEOL(std::string&);
63 
65  std::string GetPythonAddress(void* pointer);
66 
68  ~vtkCPPythonPipeline() override;
69 
70 private:
72  void operator=(const vtkCPPythonPipeline&) = delete;
73 };
74 #endif
#define VTKPVPYTHONCATALYST_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) override
Abstract class that takes care of initializing Catalyst Python pipelines for all concrete implementat...
#define VTK_NEWINSTANCE
Generic interface for operating on pipelines.
Definition: vtkCPPipeline.h:17
This class provides the description of the data for the coprocessor pipelines.