VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
SQL
vtkTableToDatabaseWriter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkTableToDatabaseWriter.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 __vtkTableToDatabaseWriter_h
23
#define __vtkTableToDatabaseWriter_h
24
25
#include "vtkIOSQLModule.h"
// For export macro
26
#include <string>
// STL Header
27
#include "
vtkTableWriter.h
"
28
29
class
vtkSQLDatabase
;
30
class
vtkStringArray
;
31
32
class
VTKIOSQL_EXPORT
vtkTableToDatabaseWriter
:
public
vtkTableWriter
33
{
34
public
:
35
vtkTypeMacro(
vtkTableToDatabaseWriter
,
vtkTableWriter
);
36
void
PrintSelf
(ostream& os,
vtkIndent
indent);
37
39
bool
SetDatabase(
vtkSQLDatabase
*db);
40
43
bool
SetTableName(
const
char
*
name
);
44
46
bool
TableNameIsNew();
47
48
vtkSQLDatabase
*
GetDatabase
() {
return
this->Database; }
49
51
52
vtkTable
*
GetInput
();
53
vtkTable
*
GetInput
(
int
port
);
55
56
protected
:
57
vtkTableToDatabaseWriter
();
58
~
vtkTableToDatabaseWriter
();
59
virtual
void
WriteData
() = 0;
60
61
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
62
63
64
vtkSQLDatabase
*
Database
;
65
vtkTable
*
Input
;
66
//BTX
67
std::string
TableName
;
68
//ETX
69
70
private
:
71
vtkTableToDatabaseWriter
(
const
vtkTableToDatabaseWriter
&);
// Not implemented.
72
void
operator=(
const
vtkTableToDatabaseWriter
&);
// Not implemented.
73
};
74
75
#endif
Generated on Thu May 24 2012 22:22:32 for VTK by
1.8.1