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