VTK
vtkTableToMySQLWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTableToMySQLWriter.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 vtkTableToMySQLWriter_h
24 #define vtkTableToMySQLWriter_h
25 
26 #include "vtkIOMySQLModule.h" // For export macro
28 
29 class vtkMySQLDatabase;
30 
31 class VTKIOMYSQL_EXPORT vtkTableToMySQLWriter : public vtkTableToDatabaseWriter
32 {
33 public:
34  static vtkTableToMySQLWriter *New();
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39 
42  vtkTable* GetInput();
43  vtkTable* GetInput(int port);
45 
46 protected:
49  void WriteData();
50 
52 
54 
55 private:
56  vtkTableToMySQLWriter(const vtkTableToMySQLWriter&) VTK_DELETE_FUNCTION;
57  void operator=(const vtkTableToMySQLWriter&) VTK_DELETE_FUNCTION;
58 };
59 
60 #endif
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
maintain a connection to a MySQL database
vtkTable * GetInput()
Get the input to this writer.
a simple class to control print indentation
Definition: vtkIndent.h:33
void WriteData() override=0
store a vtkTable in a MySQL database
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
static vtkAlgorithm * New()