VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
SQL
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 "
vtkTableReader.h
"
28
29
class
vtkSQLDatabase
;
30
class
vtkStringArray
;
31
32
class
VTKIOSQL_EXPORT
vtkDatabaseToTableReader
:
public
vtkTableReader
33
{
34
public
:
35
vtkTypeMacro(
vtkDatabaseToTableReader
,
vtkTableReader
);
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
:
51
vtkDatabaseToTableReader
();
52
~
vtkDatabaseToTableReader
();
53
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
54
vtkInformationVector
*) = 0;
55
vtkSQLDatabase
*
Database
;
56
//BTX
57
std::string
TableName
;
58
//ETX
59
private
:
60
vtkDatabaseToTableReader
(
const
vtkDatabaseToTableReader
&);
// Not implemented.
61
void
operator=(
const
vtkDatabaseToTableReader
&);
// Not implemented.
62
};
63
64
#endif
Generated on Thu May 24 2012 22:22:32 for VTK by
1.8.1