VTK
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 =========================================================================*/
22 #ifndef vtkDatabaseToTableReader_h
23 #define vtkDatabaseToTableReader_h
24 
25 #include "vtkIOSQLModule.h" // For export macro
26 #include <string> // STL Header
27 #include "vtkTableAlgorithm.h"
28 
29 class vtkSQLDatabase;
30 class vtkStringArray;
31 
33 {
34 public:
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39  bool SetDatabase(vtkSQLDatabase *db);
40 
43  bool SetTableName(const char *name);
44 
46  bool CheckIfTableExists();
47 
48  vtkSQLDatabase *GetDatabase() { return this->Database; }
49 
50 protected:
54  vtkInformationVector *) = 0;
56  //BTX
58  //ETX
59 private:
60  vtkDatabaseToTableReader(const vtkDatabaseToTableReader&); // Not implemented.
61  void operator=(const vtkDatabaseToTableReader&); // Not implemented.
62 };
63 
64 #endif
void PrintSelf(ostream &os, vtkIndent indent)
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:38
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.
#define VTKIOSQL_EXPORT