VTK  9.3.1
vtkDatabaseToTableReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkDatabaseToTableReader_h
12 #define vtkDatabaseToTableReader_h
13 
14 #include "vtkIOSQLModule.h" // For export macro
15 #include "vtkTableAlgorithm.h"
16 #include <string> // STL Header
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 class vtkSQLDatabase;
20 class vtkStringArray;
21 
22 class VTKIOSQL_EXPORT vtkDatabaseToTableReader : public vtkTableAlgorithm
23 {
24 public:
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
31  bool SetDatabase(vtkSQLDatabase* db);
32 
37  bool SetTableName(const char* name);
38 
42  bool CheckIfTableExists();
43 
44  vtkSQLDatabase* GetDatabase() { return this->Database; }
45 
46 protected:
48  ~vtkDatabaseToTableReader() override;
51 
53 
54 private:
56  void operator=(const vtkDatabaseToTableReader&) = delete;
57 };
58 
59 VTK_ABI_NAMESPACE_END
60 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
a vtkAbstractArray subclass for strings
Read an SQL table as a vtkTable.
maintain a connection to an sql database
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.