VTK  9.3.20240418
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 
32 
37  bool SetTableName(const char* name);
38 
43 
44  vtkSQLDatabase* GetDatabase() { return this->Database; }
45 
46 protected:
51 
53 
54 private:
56  void operator=(const vtkDatabaseToTableReader&) = delete;
57 };
58 
59 VTK_ABI_NAMESPACE_END
60 #endif
Read an SQL table as a vtkTable.
bool CheckIfTableExists()
Check if the currently specified table name exists in the database.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool SetTableName(const char *name)
Set the name of the table that you'd like to convert to a vtkTable Returns false if the specified tab...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override=0
This is called by the superclass.
~vtkDatabaseToTableReader() override
bool SetDatabase(vtkSQLDatabase *db)
Set the database associated with this reader.
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
maintain a connection to an sql database
a vtkAbstractArray subclass for strings
Superclass for algorithms that produce only vtkTables as output.
@ name
Definition: vtkX3D.h:219
@ string
Definition: vtkX3D.h:490