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 -------------------------------------------------------------------------*/
35 #ifndef vtkSQLDatabaseTableSource_h
36 #define vtkSQLDatabaseTableSource_h
37 
38 #include "vtkIOSQLModule.h" // For export macro
39 #include "vtkStdString.h"
40 #include "vtkTableAlgorithm.h"
41 
43 
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
51  vtkStdString GetURL();
52  void SetURL(const vtkStdString& url);
53 
54  void SetPassword(const vtkStdString& password);
55 
56  vtkStdString GetQuery();
57  void SetQuery(const vtkStdString& query);
58 
60 
62  vtkSetStringMacro(PedigreeIdArrayName);
63  vtkGetStringMacro(PedigreeIdArrayName);
65 
67 
69  vtkSetMacro(GeneratePedigreeIds, bool);
70  vtkGetMacro(GeneratePedigreeIds, bool);
71  vtkBooleanMacro(GeneratePedigreeIds, bool);
73 
74 protected:
77 
78  int RequestData(
82 
83 private:
84  vtkSQLDatabaseTableSource(const vtkSQLDatabaseTableSource&); // Not implemented
85  void operator=(const vtkSQLDatabaseTableSource&); // Not implemented
86 
87  char* PedigreeIdArrayName;
88  bool GeneratePedigreeIds;
89 
92  vtkEventForwarderCommand *EventForwarder;
93 
94 //BTX
95  class implementation;
96  implementation* const Implementation;
97 //ETX
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:46
void PrintSelf(ostream &os, vtkIndent indent)
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:38
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.
#define VTKIOSQL_EXPORT