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 =========================================================================*/
23 #ifndef vtkDatabaseToTableReader_h
24 #define vtkDatabaseToTableReader_h
25 
26 #include "vtkIOSQLModule.h" // For export macro
27 #include <string> // STL Header
28 #include "vtkTableAlgorithm.h"
29 
30 class vtkSQLDatabase;
31 class vtkStringArray;
32 
33 class VTKIOSQL_EXPORT vtkDatabaseToTableReader : public vtkTableAlgorithm
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
43 
48  bool SetTableName(const char *name);
49 
54 
55  vtkSQLDatabase *GetDatabase() { return this->Database; }
56 
57 protected:
61  vtkInformationVector *) = 0;
63 
65 
66 private:
67  vtkDatabaseToTableReader(const vtkDatabaseToTableReader&) VTK_DELETE_FUNCTION;
68  void operator=(const vtkDatabaseToTableReader&) VTK_DELETE_FUNCTION;
69 };
70 
71 #endif
vtkDatabaseToTableReader
Read an SQL table as a vtkTable.
Definition: vtkDatabaseToTableReader.h:34
vtkDatabaseToTableReader::CheckIfTableExists
bool CheckIfTableExists()
Check if the currently specified table name exists in the database.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkDatabaseToTableReader::SetTableName
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...
vtkDatabaseToTableReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)=0
This is called by the superclass.
vtkDatabaseToTableReader::SetDatabase
bool SetDatabase(vtkSQLDatabase *db)
Set the database associated with this reader.
vtkTableAlgorithm
Superclass for algorithms that produce only vtkTables as output.
Definition: vtkTableAlgorithm.h:49
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkDatabaseToTableReader::TableName
std::string TableName
Definition: vtkDatabaseToTableReader.h:64
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkDatabaseToTableReader::vtkDatabaseToTableReader
vtkDatabaseToTableReader()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::string
@ string
Definition: vtkX3D.h:490
vtkDatabaseToTableReader::GetDatabase
vtkSQLDatabase * GetDatabase()
Definition: vtkDatabaseToTableReader.h:55
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:43
vtkTableAlgorithm.h
vtkDatabaseToTableReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkDatabaseToTableReader::Database
vtkSQLDatabase * Database
Definition: vtkDatabaseToTableReader.h:62
vtkDatabaseToTableReader::~vtkDatabaseToTableReader
~vtkDatabaseToTableReader()
vtkSQLDatabase
maintain a connection to an sql database
Definition: vtkSQLDatabase.h:91