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 
17 class VTKPVPYTHONCATALYST_EXPORT vtkCPPythonPipeline : public vtkCPPipeline
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
vtkCPPipeline
Definition: vtkCPPipeline.h:17
vtkSmartPointer
vtkCPPipeline.h
vtkCPDataDescription
Definition: vtkCPDataDescription.h:15
vtkIndent
vtkSmartPointer.h
VTK_NEWINSTANCE
#define VTK_NEWINSTANCE
vtkCPPythonPipeline
Definition: vtkCPPythonPipeline.h:17
vtkCPPipeline::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override