VTK  9.3.20240420
vtkSQLDatabaseTableSource.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
17#ifndef vtkSQLDatabaseTableSource_h
18#define vtkSQLDatabaseTableSource_h
19
20#include "vtkIOSQLModule.h" // For export macro
21#include "vtkStdString.h" // for vtkStdString
22#include "vtkTableAlgorithm.h"
23
24VTK_ABI_NAMESPACE_BEGIN
26
27class VTKIOSQL_EXPORT vtkSQLDatabaseTableSource : public vtkTableAlgorithm
28{
29public:
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
35 void SetURL(const vtkStdString& url);
36
37 void SetPassword(const vtkStdString& password);
38
40 void SetQuery(const vtkStdString& query);
41
43
47 vtkSetStringMacro(PedigreeIdArrayName);
48 vtkGetStringMacro(PedigreeIdArrayName);
50
52
56 vtkSetMacro(GeneratePedigreeIds, bool);
57 vtkGetMacro(GeneratePedigreeIds, bool);
58 vtkBooleanMacro(GeneratePedigreeIds, bool);
60
61protected:
64
66
67private:
69 void operator=(const vtkSQLDatabaseTableSource&) = delete;
70
71 char* PedigreeIdArrayName;
72 bool GeneratePedigreeIds;
73
78 vtkEventForwarderCommand* EventForwarder;
79
80 class implementation;
81 implementation* const Implementation;
82};
83
84VTK_ABI_NAMESPACE_END
85#endif
a simple event forwarder command
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generates a vtkTable based on an SQL query.
void SetURL(const vtkStdString &url)
void SetPassword(const vtkStdString &password)
~vtkSQLDatabaseTableSource() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetQuery(const vtkStdString &query)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkSQLDatabaseTableSource * New()
Wrapper around std::string to keep symbols short.
Superclass for algorithms that produce only vtkTables as output.