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 =========================================================================*/
22 #ifndef __vtkTableToDatabaseWriter_h
23 #define __vtkTableToDatabaseWriter_h
24 
25 #include <vtkstd/string> // STL Header
26 #include "vtkTableWriter.h"
27 
28 class vtkSQLDatabase;
29 class vtkStringArray;
30 
32 {
33 public:
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38  bool SetDatabase(vtkSQLDatabase *db);
39 
42  bool SetTableName(const char *name);
43 
45  bool TableNameIsNew();
46 
47  vtkSQLDatabase *GetDatabase() { return this->Database; }
48 
50 
51  vtkTable* GetInput();
52  vtkTable* GetInput(int port);
54 
55 protected:
58  virtual void WriteData() = 0;
59 
61 
62 
65  //BTX
67  //ETX
68 
69 private:
70  vtkTableToDatabaseWriter(const vtkTableToDatabaseWriter&); // Not implemented.
71  void operator=(const vtkTableToDatabaseWriter&); // Not implemented.
72 };
73 
74 #endif