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 
30 class vtkSQLDatabase;
31 class vtkStringArray;
32 class vtkTable;
33 
34 class VTKIOSQL_EXPORT vtkTableToDatabaseWriter : public vtkWriter
35 {
36 public:
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
43  bool SetDatabase(vtkSQLDatabase *db);
44 
49  bool SetTableName(const char *name);
50 
54  bool TableNameIsNew();
55 
56  vtkSQLDatabase *GetDatabase() { return this->Database; }
57 
59 
62  vtkTable* GetInput();
63  vtkTable* GetInput(int port);
65 
66 protected:
69  virtual void WriteData() = 0;
70 
72 
73 
76 
78 
79 private:
80  vtkTableToDatabaseWriter(const vtkTableToDatabaseWriter&) VTK_DELETE_FUNCTION;
81  void operator=(const vtkTableToDatabaseWriter&) VTK_DELETE_FUNCTION;
82 };
83 
84 #endif
Store vtkAlgorithm input/output information.
a vtkAbstractArray subclass for strings
abstract class to write data to file(s)
Definition: vtkWriter.h:42
maintain a connection to an sql database
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkDataObject * GetInput()
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
virtual void WriteData()=0
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.