VTK: IO/SQL/vtkSQLDatabaseTableSource.h Source File

| VTK 9.3.1

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
24 VTK_ABI_NAMESPACE_BEGIN
25 class vtkEventForwarderCommand;
26
27 class VTKIOSQL_EXPORT vtkSQLDatabaseTableSource : public vtkTableAlgorithm
28 {
29 public:
30 static vtkSQLDatabaseTableSource* New();
31 vtkTypeMacro(vtkSQLDatabaseTableSource, vtkTableAlgorithm);
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
34 vtkStdString GetURL();
35 void SetURL(const vtkStdString& url);
36
37 void SetPassword(const vtkStdString& password);
38
39 vtkStdString GetQuery();
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
61 protected:
62 vtkSQLDatabaseTableSource();
63 ~vtkSQLDatabaseTableSource() override;
64
65 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
66
67 private:
68 vtkSQLDatabaseTableSource(const vtkSQLDatabaseTableSource&) = delete;
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
84 VTK_ABI_NAMESPACE_END
85 #endif
vtkEventForwarderCommand
a simple event forwarder command
Definition: vtkEventForwarderCommand.h:24
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkSQLDatabaseTableSource
Generates a vtkTable based on an SQL query.
Definition: vtkSQLDatabaseTableSource.h:28
vtkSQLDatabaseTableSource::vtkSQLDatabaseTableSource
vtkSQLDatabaseTableSource()
vtkSQLDatabaseTableSource::SetURL
void SetURL(const vtkStdString &url)
vtkSQLDatabaseTableSource::GetQuery
vtkStdString GetQuery()
vtkSQLDatabaseTableSource::SetPassword
void SetPassword(const vtkStdString &password)
vtkSQLDatabaseTableSource::~vtkSQLDatabaseTableSource
~vtkSQLDatabaseTableSource() override
vtkSQLDatabaseTableSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSQLDatabaseTableSource::SetQuery
void SetQuery(const vtkStdString &query)
vtkSQLDatabaseTableSource::GetURL
vtkStdString GetURL()
vtkSQLDatabaseTableSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkSQLDatabaseTableSource::New
static vtkSQLDatabaseTableSource * New()
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:38
vtkTableAlgorithm
Superclass for algorithms that produce only vtkTables as output.
Definition: vtkTableAlgorithm.h:37
vtkX3D::url
@ url
Definition: vtkX3D.h:233
vtkStdString.h
vtkTableAlgorithm.h