VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkSQLDatabaseTableSource.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00035 #ifndef __vtkSQLDatabaseTableSource_h 00036 #define __vtkSQLDatabaseTableSource_h 00037 00038 #include "vtkIOSQLModule.h" // For export macro 00039 #include "vtkStdString.h" 00040 #include "vtkTableAlgorithm.h" 00041 00042 class vtkEventForwarderCommand; 00043 00044 class VTKIOSQL_EXPORT vtkSQLDatabaseTableSource : public vtkTableAlgorithm 00045 { 00046 public: 00047 static vtkSQLDatabaseTableSource* New(); 00048 vtkTypeMacro(vtkSQLDatabaseTableSource, vtkTableAlgorithm); 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00051 vtkStdString GetURL(); 00052 void SetURL(const vtkStdString& url); 00053 00054 void SetPassword(const vtkStdString& password); 00055 00056 vtkStdString GetQuery(); 00057 void SetQuery(const vtkStdString& query); 00058 00060 00062 vtkSetStringMacro(PedigreeIdArrayName); 00063 vtkGetStringMacro(PedigreeIdArrayName); 00065 00067 00069 vtkSetMacro(GeneratePedigreeIds, bool); 00070 vtkGetMacro(GeneratePedigreeIds, bool); 00071 vtkBooleanMacro(GeneratePedigreeIds, bool); 00073 00074 protected: 00075 vtkSQLDatabaseTableSource(); 00076 ~vtkSQLDatabaseTableSource(); 00077 00078 int RequestData( 00079 vtkInformation*, 00080 vtkInformationVector**, 00081 vtkInformationVector*); 00082 00083 private: 00084 vtkSQLDatabaseTableSource(const vtkSQLDatabaseTableSource&); // Not implemented 00085 void operator=(const vtkSQLDatabaseTableSource&); // Not implemented 00086 00087 char* PedigreeIdArrayName; 00088 bool GeneratePedigreeIds; 00089 00092 vtkEventForwarderCommand *EventForwarder; 00093 00094 //BTX 00095 class implementation; 00096 implementation* const Implementation; 00097 //ETX 00098 }; 00099 00100 #endif 00101 00102 // VTK-HeaderTest-Exclude: vtkSQLDatabaseTableSource.h