• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Infovis/vtkSQLDatabaseTableSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkSQLDatabaseTableSource.h,v $
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 -------------------------------------------------------------------------*/
00032 #ifndef __vtkSQLDatabaseTableSource_h
00033 #define __vtkSQLDatabaseTableSource_h
00034 
00035 #include "vtkStdString.h"
00036 #include "vtkTableAlgorithm.h"
00037 
00038 class vtkEventForwarderCommand;
00039 
00040 class VTK_INFOVIS_EXPORT vtkSQLDatabaseTableSource : public vtkTableAlgorithm
00041 {
00042 public:
00043   static vtkSQLDatabaseTableSource* New();
00044   vtkTypeRevisionMacro(vtkSQLDatabaseTableSource, vtkTableAlgorithm);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00047   vtkStdString GetURL();
00048   void SetURL(const vtkStdString& url);
00049 
00050   void SetPassword(const vtkStdString& password);
00051 
00052   vtkStdString GetQuery();
00053   void SetQuery(const vtkStdString& query);
00054 
00056 
00058   vtkSetStringMacro(PedigreeIdArrayName);
00059   vtkGetStringMacro(PedigreeIdArrayName);
00061 
00063 
00065   vtkSetMacro(GeneratePedigreeIds, bool);
00066   vtkGetMacro(GeneratePedigreeIds, bool);
00067   vtkBooleanMacro(GeneratePedigreeIds, bool);
00069  
00070 protected:
00071   vtkSQLDatabaseTableSource();
00072   ~vtkSQLDatabaseTableSource();
00073   
00074   int RequestData(
00075     vtkInformation*, 
00076     vtkInformationVector**, 
00077     vtkInformationVector*);
00078   
00079 private:
00080   vtkSQLDatabaseTableSource(const vtkSQLDatabaseTableSource&); // Not implemented
00081   void operator=(const vtkSQLDatabaseTableSource&);   // Not implemented
00082 
00083   char* PedigreeIdArrayName;
00084   bool GeneratePedigreeIds;
00085   
00088   vtkEventForwarderCommand *EventForwarder;
00089 
00090 //BTX
00091   class implementation;
00092   implementation* const Implementation;
00093 //ETX
00094 };
00095 
00096 #endif
00097 

Generated by  doxygen 1.7.1