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 "vtkStdString.h"
39 #include "vtkTableAlgorithm.h"
40 
42 
44 {
45 public:
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
50  vtkStdString GetURL();
51  void SetURL(const vtkStdString& url);
52 
53  void SetPassword(const vtkStdString& password);
54 
55  vtkStdString GetQuery();
56  void SetQuery(const vtkStdString& query);
57 
59 
61  vtkSetStringMacro(PedigreeIdArrayName);
62  vtkGetStringMacro(PedigreeIdArrayName);
64 
66 
68  vtkSetMacro(GeneratePedigreeIds, bool);
69  vtkGetMacro(GeneratePedigreeIds, bool);
70  vtkBooleanMacro(GeneratePedigreeIds, bool);
72 
73 protected:
76 
77  int RequestData(
81 
82 private:
83  vtkSQLDatabaseTableSource(const vtkSQLDatabaseTableSource&); // Not implemented
84  void operator=(const vtkSQLDatabaseTableSource&); // Not implemented
85 
86  char* PedigreeIdArrayName;
87  bool GeneratePedigreeIds;
88 
91  vtkEventForwarderCommand *EventForwarder;
92 
93 //BTX
94  class implementation;
95  implementation* const Implementation;
96 //ETX
97 };
98 
99 #endif
100