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 
53  void SetURL(const vtkStdString& url);
54 
55  void SetPassword(const vtkStdString& password);
56 
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 
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
vtkStdString.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkSQLDatabaseTableSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkSQLDatabaseTableSource::SetQuery
void SetQuery(const vtkStdString &query)
vtkSQLDatabaseTableSource::vtkSQLDatabaseTableSource
vtkSQLDatabaseTableSource()
vtkSQLDatabaseTableSource::SetURL
void SetURL(const vtkStdString &url)
vtkSQLDatabaseTableSource::GetQuery
vtkStdString GetQuery()
vtkSQLDatabaseTableSource
Generates a vtkTable based on an SQL query.
Definition: vtkSQLDatabaseTableSource.h:46
vtkTableAlgorithm
Superclass for algorithms that produce only vtkTables as output.
Definition: vtkTableAlgorithm.h:49
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkSQLDatabaseTableSource::SetPassword
void SetPassword(const vtkStdString &password)
vtkX3D::url
@ url
Definition: vtkX3D.h:233
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSQLDatabaseTableSource::New
static vtkSQLDatabaseTableSource * New()
vtkTableAlgorithm.h
vtkSQLDatabaseTableSource::~vtkSQLDatabaseTableSource
~vtkSQLDatabaseTableSource()
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:49
vtkEventForwarderCommand
a simple event forwarder command
Definition: vtkEventForwarderCommand.h:35
vtkSQLDatabaseTableSource::GetURL
vtkStdString GetURL()
vtkSQLDatabaseTableSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.