VTK
|
Read an SQL table as a vtkTable. More...
#include <vtkDatabaseToTableReader.h>
Public Types | |
typedef vtkTableAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkDatabaseToTableReader * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
bool | SetDatabase (vtkSQLDatabase *db) |
bool | SetTableName (const char *name) |
bool | CheckIfTableExists () |
vtkSQLDatabase * | GetDatabase () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkDatabaseToTableReader * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkDatabaseToTableReader () | |
~vtkDatabaseToTableReader () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)=0 |
Protected Attributes | |
vtkSQLDatabase * | Database |
std::string | TableName |
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.
Reimplemented from vtkTableAlgorithm.
Reimplemented in vtkMySQLToTableReader, vtkPostgreSQLToTableReader, and vtkSQLiteToTableReader.
Definition at line 35 of file vtkDatabaseToTableReader.h.
vtkDatabaseToTableReader::vtkDatabaseToTableReader | ( | ) | [protected] |
vtkDatabaseToTableReader::~vtkDatabaseToTableReader | ( | ) | [protected] |
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.
static vtkDatabaseToTableReader* vtkDatabaseToTableReader::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkTableAlgorithm.
Reimplemented in vtkMySQLToTableReader, vtkPostgreSQLToTableReader, and vtkSQLiteToTableReader.
virtual vtkObjectBase* vtkDatabaseToTableReader::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkTableAlgorithm.
Reimplemented in vtkMySQLToTableReader, vtkPostgreSQLToTableReader, and vtkSQLiteToTableReader.
Reimplemented from vtkTableAlgorithm.
Reimplemented in vtkMySQLToTableReader, vtkPostgreSQLToTableReader, and vtkSQLiteToTableReader.
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.
bool vtkDatabaseToTableReader::SetDatabase | ( | vtkSQLDatabase * | db | ) |
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.
vtkSQLDatabase* vtkDatabaseToTableReader::GetDatabase | ( | ) | [inline] |
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.
vtkSQLDatabase* vtkDatabaseToTableReader::Database [protected] |
Definition at line 55 of file vtkDatabaseToTableReader.h.
std::string vtkDatabaseToTableReader::TableName [protected] |
Definition at line 57 of file vtkDatabaseToTableReader.h.