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 <vtkstd/string> // STL Header
26 #include "vtkTableReader.h"
27 
28 class vtkSQLDatabase;
29 class vtkStringArray;
30 
32 {
33 public:
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38  bool SetDatabase(vtkSQLDatabase *db);
39 
42  bool SetTableName(const char *name);
43 
45  bool CheckIfTableExists();
46 
47  vtkSQLDatabase *GetDatabase() { return this->Database; }
48 
49 protected:
53  vtkInformationVector *) = 0;
55  //BTX
57  //ETX
58 private:
59  vtkDatabaseToTableReader(const vtkDatabaseToTableReader&); // Not implemented.
60  void operator=(const vtkDatabaseToTableReader&); // Not implemented.
61 };
62 
63 #endif
Store vtkAlgorithm input/output information.
a vtkAbstractArray subclass for strings
void PrintSelf(ostream &os, vtkIndent indent)
Read an SQL table as a vtkTable.
maintain a connection to an sql database
a simple class to control print indentation
Definition: vtkIndent.h:37
read vtkTable data file
Store zero or more vtkInformation instances.
#define VTK_IO_EXPORT
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)