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 -------------------------------------------------------------------------*/
36 #ifndef vtkSQLDatabaseTableSource_h
37 #define vtkSQLDatabaseTableSource_h
38 
39 #include "vtkIOSQLModule.h" // For export macro
40 #include "vtkStdString.h"
41 #include "vtkTableAlgorithm.h"
42 
44 
45 class VTKIOSQL_EXPORT vtkSQLDatabaseTableSource : public vtkTableAlgorithm
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
52  vtkStdString GetURL();
53  void SetURL(const vtkStdString& url);
54 
55  void SetPassword(const vtkStdString& password);
56 
57  vtkStdString GetQuery();
58  void SetQuery(const vtkStdString& query);
59 
61 
65  vtkSetStringMacro(PedigreeIdArrayName);
66  vtkGetStringMacro(PedigreeIdArrayName);
68 
70 
74  vtkSetMacro(GeneratePedigreeIds, bool);
75  vtkGetMacro(GeneratePedigreeIds, bool);
76  vtkBooleanMacro(GeneratePedigreeIds, bool);
78 
79 protected:
82 
83  int RequestData(
87 
88 private:
89  vtkSQLDatabaseTableSource(const vtkSQLDatabaseTableSource&) VTK_DELETE_FUNCTION;
90  void operator=(const vtkSQLDatabaseTableSource&) VTK_DELETE_FUNCTION;
91 
92  char* PedigreeIdArrayName;
93  bool GeneratePedigreeIds;
94 
99  vtkEventForwarderCommand *EventForwarder;
100 
101  class implementation;
102  implementation* const Implementation;
103 
104 };
105 
106 #endif
107 
108 // VTK-HeaderTest-Exclude: vtkSQLDatabaseTableSource.h
a simple event forwarder command
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:47
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
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.