vtkMySQLToTableReader.h 1.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkMySQLToTableReader.h

  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/
15 16 17 18 19 20 21
/**
 * @class   vtkMySQLToTableReader
 * @brief   Read a MySQL table as a vtkTable
 *
 * vtkMySQLToTableReader reads a table from a MySQL database and
 * outputs it as a vtkTable.
*/
22

23 24
#ifndef vtkMySQLToTableReader_h
#define vtkMySQLToTableReader_h
25

26
#include "vtkIOMySQLModule.h" // For export macro
27 28 29 30
#include "vtkDatabaseToTableReader.h"

class vtkMySQLDatabase;

31
class VTKIOMYSQL_EXPORT vtkMySQLToTableReader :
32 33 34 35
  public vtkDatabaseToTableReader
{
public:
  static vtkMySQLToTableReader *New();
36
  vtkTypeMacro(vtkMySQLToTableReader,vtkDatabaseToTableReader);
37
  void PrintSelf(ostream& os, vtkIndent indent) override;
38 39 40 41 42

protected:
   vtkMySQLToTableReader();
  ~vtkMySQLToTableReader();
  int RequestData(vtkInformation *, vtkInformationVector **,
43
                          vtkInformationVector *) override;
44
private:
45 46
  vtkMySQLToTableReader(const vtkMySQLToTableReader&) = delete;
  void operator=(const vtkMySQLToTableReader&) = delete;
47

48 49 50
};

#endif