VTK  9.2.20230201
vtkDatabaseToTableReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDatabaseToTableReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef vtkDatabaseToTableReader_h
24 #define vtkDatabaseToTableReader_h
25 
26 #include "vtkIOSQLModule.h" // For export macro
27 #include "vtkTableAlgorithm.h"
28 #include <string> // STL Header
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class vtkSQLDatabase;
32 class vtkStringArray;
33 
34 class VTKIOSQL_EXPORT vtkDatabaseToTableReader : public vtkTableAlgorithm
35 {
36 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
44 
49  bool SetTableName(const char* name);
50 
55 
56  vtkSQLDatabase* GetDatabase() { return this->Database; }
57 
58 protected:
63 
65 
66 private:
68  void operator=(const vtkDatabaseToTableReader&) = delete;
69 };
70 
71 VTK_ABI_NAMESPACE_END
72 #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:120
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:231
@ string
Definition: vtkX3D.h:502