VTK
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 
46  vtkStdString GetURL();
47  void SetURL(const vtkStdString& url);
48 
49  void SetPassword(const vtkStdString& password);
50 
51  vtkStdString GetQuery();
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:
75  ~vtkSQLDatabaseTableSource() override;
76 
77  int RequestData(
80  vtkInformationVector*) override;
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 
100 #endif
101 
102 // VTK-HeaderTest-Exclude: vtkSQLDatabaseTableSource.h
a simple event forwarder command
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:34
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:33
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.