VTK  9.2.6
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 -------------------------------------------------------------------------*/
33 #ifndef vtkSQLDatabaseTableSource_h
34 #define vtkSQLDatabaseTableSource_h
35 
36 #include "vtkIOSQLModule.h" // For export macro
37 #include "vtkStdString.h" // for vtkStdString
38 #include "vtkTableAlgorithm.h"
39 
41 
42 class VTKIOSQL_EXPORT vtkSQLDatabaseTableSource : public vtkTableAlgorithm
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
49  vtkStdString GetURL();
50  void SetURL(const vtkStdString& url);
51 
52  void SetPassword(const vtkStdString& password);
53 
54  vtkStdString GetQuery();
55  void SetQuery(const vtkStdString& query);
56 
58 
62  vtkSetStringMacro(PedigreeIdArrayName);
63  vtkGetStringMacro(PedigreeIdArrayName);
65 
67 
71  vtkSetMacro(GeneratePedigreeIds, bool);
72  vtkGetMacro(GeneratePedigreeIds, bool);
73  vtkBooleanMacro(GeneratePedigreeIds, bool);
75 
76 protected:
78  ~vtkSQLDatabaseTableSource() override;
79 
81 
82 private:
84  void operator=(const vtkSQLDatabaseTableSource&) = delete;
85 
86  char* PedigreeIdArrayName;
87  bool GeneratePedigreeIds;
88 
93  vtkEventForwarderCommand* EventForwarder;
94 
95  class implementation;
96  implementation* const Implementation;
97 };
98 
99 #endif
a simple event forwarder command
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:38
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTableAlgorithm * New()
Store vtkAlgorithm input/output information.
Generates a vtkTable based on an SQL query.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.