VTK  9.3.1
vtkSQLDatabaseTableSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
17 #ifndef vtkSQLDatabaseTableSource_h
18 #define vtkSQLDatabaseTableSource_h
19 
20 #include "vtkIOSQLModule.h" // For export macro
21 #include "vtkStdString.h" // for vtkStdString
22 #include "vtkTableAlgorithm.h"
23 
24 VTK_ABI_NAMESPACE_BEGIN
26 
27 class VTKIOSQL_EXPORT vtkSQLDatabaseTableSource : public vtkTableAlgorithm
28 {
29 public:
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
34  vtkStdString GetURL();
35  void SetURL(const vtkStdString& url);
36 
37  void SetPassword(const vtkStdString& password);
38 
39  vtkStdString GetQuery();
40  void SetQuery(const vtkStdString& query);
41 
43 
47  vtkSetStringMacro(PedigreeIdArrayName);
48  vtkGetStringMacro(PedigreeIdArrayName);
50 
52 
56  vtkSetMacro(GeneratePedigreeIds, bool);
57  vtkGetMacro(GeneratePedigreeIds, bool);
58  vtkBooleanMacro(GeneratePedigreeIds, bool);
60 
61 protected:
63  ~vtkSQLDatabaseTableSource() override;
64 
66 
67 private:
69  void operator=(const vtkSQLDatabaseTableSource&) = delete;
70 
71  char* PedigreeIdArrayName;
72  bool GeneratePedigreeIds;
73 
78  vtkEventForwarderCommand* EventForwarder;
79 
80  class implementation;
81  implementation* const Implementation;
82 };
83 
84 VTK_ABI_NAMESPACE_END
85 #endif
a simple event forwarder command
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTableAlgorithm * New()
Store vtkAlgorithm input/output information.
Generates a vtkTable based on an SQL query.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.