#include <vtkDatabaseToTableReader.h>
vtkDatabaseToTableReader reads a table from an SQL database, outputting it as a vtkTable.
Definition at line 31 of file vtkDatabaseToTableReader.h.
Public Types | |
typedef vtkTableReader | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
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 (vtkObject *o) |
Protected Member Functions | |
vtkDatabaseToTableReader () | |
~vtkDatabaseToTableReader () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)=0 |
Protected Attributes | |
vtkSQLDatabase * | Database |
vtkstd::string | TableName |
Reimplemented from vtkTableReader.
Reimplemented in vtkMySQLToTableReader, vtkPostgreSQLToTableReader, and vtkSQLiteToTableReader.
Definition at line 34 of file vtkDatabaseToTableReader.h.
vtkDatabaseToTableReader::vtkDatabaseToTableReader | ( | ) | [protected] |
vtkDatabaseToTableReader::~vtkDatabaseToTableReader | ( | ) | [protected] |
virtual const char* vtkDatabaseToTableReader::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkTableReader.
Reimplemented in vtkMySQLToTableReader, vtkPostgreSQLToTableReader, and vtkSQLiteToTableReader.
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 vtkTableReader.
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 vtkTableReader.
Reimplemented in vtkMySQLToTableReader, vtkPostgreSQLToTableReader, and vtkSQLiteToTableReader.
static vtkDatabaseToTableReader* vtkDatabaseToTableReader::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkTableReader.
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 vtkTableReader.
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.
bool vtkDatabaseToTableReader::CheckIfTableExists | ( | ) |
Check if the currently specified table name exists in the database.
vtkSQLDatabase* vtkDatabaseToTableReader::GetDatabase | ( | ) | [inline] |
Definition at line 47 of file vtkDatabaseToTableReader.h.
int vtkDatabaseToTableReader::RequestData | ( | vtkInformation * | , | |
vtkInformationVector ** | , | |||
vtkInformationVector * | ||||
) | [protected, pure virtual] |
Reimplemented from vtkTableReader.
Implemented in vtkMySQLToTableReader, vtkPostgreSQLToTableReader, and vtkSQLiteToTableReader.
vtkSQLDatabase* vtkDatabaseToTableReader::Database [protected] |
Definition at line 54 of file vtkDatabaseToTableReader.h.
vtkstd::string vtkDatabaseToTableReader::TableName [protected] |
Definition at line 56 of file vtkDatabaseToTableReader.h.