VTK
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=========================================================================*/
23#ifndef vtkTableToDatabaseWriter_h
24#define vtkTableToDatabaseWriter_h
25
26#include "vtkIOSQLModule.h" // For export macro
27#include <string> // STL Header
28#include "vtkWriter.h"
29
30class vtkSQLDatabase;
31class vtkStringArray;
32class vtkTable;
33
34class VTKIOSQL_EXPORT vtkTableToDatabaseWriter : public vtkWriter
35{
36public:
38 void PrintSelf(ostream& os, vtkIndent indent);
39
44
49 bool SetTableName(const char *name);
50
55
56 vtkSQLDatabase *GetDatabase() { return this->Database; }
57
59
65
66protected:
69 virtual void WriteData() = 0;
70
72
73
76
78
79private:
80 vtkTableToDatabaseWriter(const vtkTableToDatabaseWriter&) VTK_DELETE_FUNCTION;
81 void operator=(const vtkTableToDatabaseWriter&) VTK_DELETE_FUNCTION;
82};
83
84#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Store vtkAlgorithm input/output information.
maintain a connection to an sql database
a vtkAbstractArray subclass for strings
bool SetTableName(const char *name)
Set the name of the new SQL table that you'd this writer to create.
vtkTable * GetInput()
Get the input to this writer.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
bool TableNameIsNew()
Check if the currently specified table name exists in the database.
bool SetDatabase(vtkSQLDatabase *db)
Set the database.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
virtual void WriteData()=0
vtkTable * GetInput(int port)
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:69
abstract class to write data to file(s)
Definition: vtkWriter.h:43
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ name
Definition: vtkX3D.h:219
@ string
Definition: vtkX3D.h:490