VTK  9.0.1
vtkSQLDatabaseTableSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSQLDatabaseTableSource.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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
30 #ifndef vtkSQLDatabaseTableSource_h
31 #define vtkSQLDatabaseTableSource_h
32 
33 #include "vtkIOSQLModule.h" // For export macro
34 #include "vtkStdString.h"
35 #include "vtkTableAlgorithm.h"
36 
38 
39 class VTKIOSQL_EXPORT vtkSQLDatabaseTableSource : public vtkTableAlgorithm
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47  void SetURL(const vtkStdString& url);
48 
49  void SetPassword(const vtkStdString& password);
50 
52  void SetQuery(const vtkStdString& query);
53 
55 
59  vtkSetStringMacro(PedigreeIdArrayName);
60  vtkGetStringMacro(PedigreeIdArrayName);
62 
64 
68  vtkSetMacro(GeneratePedigreeIds, bool);
69  vtkGetMacro(GeneratePedigreeIds, bool);
70  vtkBooleanMacro(GeneratePedigreeIds, bool);
72 
73 protected:
76 
78 
79 private:
81  void operator=(const vtkSQLDatabaseTableSource&) = delete;
82 
83  char* PedigreeIdArrayName;
84  bool GeneratePedigreeIds;
85 
90  vtkEventForwarderCommand* EventForwarder;
91 
92  class implementation;
93  implementation* const Implementation;
94 };
95 
96 #endif
97 
98 // VTK-HeaderTest-Exclude: vtkSQLDatabaseTableSource.h
a simple event forwarder command
a simple class to control print indentation
Definition: vtkIndent.h:34
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.
Definition: vtkStdString.h:35
Superclass for algorithms that produce only vtkTables as output.
@ url
Definition: vtkX3D.h:239