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