VTK  9.1.0
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 "vtkWriter.h"
28#include <string> // STL Header
29
30class vtkSQLDatabase;
31class vtkStringArray;
32class vtkTable;
33
34class VTKIOSQL_EXPORT vtkTableToDatabaseWriter : public vtkWriter
35{
36public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
44
49 bool SetTableName(const char* name);
50
55
56 vtkSQLDatabase* GetDatabase() { return this->Database; }
57
59
65
66protected:
69 void WriteData() override = 0;
70
72
75
77
78private:
80 void operator=(const vtkTableToDatabaseWriter&) = delete;
81};
82
83#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
Store vtkAlgorithm input/output information.
maintain a connection to an sql database
a vtkAbstractArray subclass for strings
void WriteData() override=0
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.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkTableToDatabaseWriter() override
bool TableNameIsNew()
Check if the currently specified table name exists in the database.
bool SetDatabase(vtkSQLDatabase *db)
Set the database.
vtkTable * GetInput(int port)
Get the input to this writer.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:172
abstract class to write data to file(s)
Definition: vtkWriter.h:43
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ name
Definition: vtkX3D.h:225
@ string
Definition: vtkX3D.h:496