VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
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
31
class
VTK_IO_EXPORT
vtkDatabaseToTableReader
:
public
vtkTableReader
32
{
33
public
:
34
vtkTypeMacro(
vtkDatabaseToTableReader
,
vtkTableReader
);
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
:
50
vtkDatabaseToTableReader
();
51
~
vtkDatabaseToTableReader
();
52
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
53
vtkInformationVector
*) = 0;
54
vtkSQLDatabase
*
Database
;
55
//BTX
56
vtkstd::string
TableName
;
57
//ETX
58
private
:
59
vtkDatabaseToTableReader
(
const
vtkDatabaseToTableReader
&);
// Not implemented.
60
void
operator=(
const
vtkDatabaseToTableReader
&);
// Not implemented.
61
};
62
63
#endif
Generated on Wed Nov 21 2012 21:33:58 for VTK by
1.8.2