VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkDatabaseToTableReader Class Reference

Read an SQL table as a vtkTable. More...

#include <vtkDatabaseToTableReader.h>

Inheritance diagram for vtkDatabaseToTableReader:
Inheritance graph
[legend]
Collaboration diagram for vtkDatabaseToTableReader:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkTableAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkDatabaseToTableReaderNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
bool SetDatabase (vtkSQLDatabase *db)
bool SetTableName (const char *name)
bool CheckIfTableExists ()
vtkSQLDatabaseGetDatabase ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkDatabaseToTableReaderSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkDatabaseToTableReader ()
 ~vtkDatabaseToTableReader ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)=0

Protected Attributes

vtkSQLDatabaseDatabase
std::string TableName

Detailed Description

Read an SQL table as a vtkTable.

vtkDatabaseToTableReader reads a table from an SQL database, outputting it as a vtkTable.

Definition at line 32 of file vtkDatabaseToTableReader.h.


Member Typedef Documentation

Reimplemented from vtkTableAlgorithm.

Reimplemented in vtkMySQLToTableReader, vtkPostgreSQLToTableReader, and vtkSQLiteToTableReader.

Definition at line 35 of file vtkDatabaseToTableReader.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkDatabaseToTableReader::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkTableAlgorithm.

Reimplemented in vtkMySQLToTableReader, vtkPostgreSQLToTableReader, and vtkSQLiteToTableReader.

virtual int vtkDatabaseToTableReader::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkTableAlgorithm.

Reimplemented in vtkMySQLToTableReader, vtkPostgreSQLToTableReader, and vtkSQLiteToTableReader.

virtual vtkObjectBase* vtkDatabaseToTableReader::NewInstanceInternal ( ) const [protected, virtual]
void vtkDatabaseToTableReader::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkTableAlgorithm.

Reimplemented in vtkMySQLToTableReader, vtkPostgreSQLToTableReader, and vtkSQLiteToTableReader.

Set the database associated with this reader

bool vtkDatabaseToTableReader::SetTableName ( const char *  name)

Set the name of the table that you'd like to convert to a vtkTable Returns false if the specified table does not exist in the database.

Check if the currently specified table name exists in the database.

Definition at line 48 of file vtkDatabaseToTableReader.h.

int vtkDatabaseToTableReader::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, pure virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkTableAlgorithm.

Implemented in vtkMySQLToTableReader, vtkPostgreSQLToTableReader, and vtkSQLiteToTableReader.


Member Data Documentation

Definition at line 55 of file vtkDatabaseToTableReader.h.

std::string vtkDatabaseToTableReader::TableName [protected]

Definition at line 57 of file vtkDatabaseToTableReader.h.


The documentation for this class was generated from the following file: