VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTableToPostgreSQLWriter.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 =========================================================================*/ 00025 #ifndef __vtkTableToPostgreSQLWriter_h 00026 #define __vtkTableToPostgreSQLWriter_h 00027 00028 #include "vtkIOPostgreSQLModule.h" // For export macro 00029 #include "vtkTableToDatabaseWriter.h" 00030 00031 class vtkPostgreSQLDatabase; 00032 00033 class VTKIOPOSTGRESQL_EXPORT vtkTableToPostgreSQLWriter : public vtkTableToDatabaseWriter 00034 { 00035 public: 00036 static vtkTableToPostgreSQLWriter *New(); 00037 vtkTypeMacro(vtkTableToPostgreSQLWriter,vtkTableToDatabaseWriter); 00038 void PrintSelf(ostream& os, vtkIndent indent); 00039 00041 00042 vtkTable* GetInput(); 00043 vtkTable* GetInput(int port); 00045 00046 protected: 00047 vtkTableToPostgreSQLWriter(); 00048 ~vtkTableToPostgreSQLWriter(); 00049 void WriteData(); 00050 00051 virtual int FillInputPortInformation(int port, vtkInformation *info); 00052 00053 vtkTable *Input; 00054 00055 private: 00056 vtkTableToPostgreSQLWriter(const vtkTableToPostgreSQLWriter&); // Not implemented. 00057 void operator=(const vtkTableToPostgreSQLWriter&); // Not implemented. 00058 }; 00059 00060 #endif