#include <vtkTableToDatabaseWriter.h>
vtkTableToDatabaseWriter abstract parent class that reads a vtkTable and inserts it into an SQL database.
Definition at line 31 of file vtkTableToDatabaseWriter.h.
Public Types | |
typedef vtkTableWriter | 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 | TableNameIsNew () |
vtkSQLDatabase * | GetDatabase () |
vtkTable * | GetInput () |
vtkTable * | GetInput (int port) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkTableToDatabaseWriter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkTableToDatabaseWriter () | |
~vtkTableToDatabaseWriter () | |
virtual void | WriteData ()=0 |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
Protected Attributes | |
vtkSQLDatabase * | Database |
vtkTable * | Input |
vtkstd::string | TableName |
Reimplemented from vtkTableWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
Definition at line 34 of file vtkTableToDatabaseWriter.h.
vtkTableToDatabaseWriter::vtkTableToDatabaseWriter | ( | ) | [protected] |
vtkTableToDatabaseWriter::~vtkTableToDatabaseWriter | ( | ) | [protected] |
virtual const char* vtkTableToDatabaseWriter::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkTableWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
static int vtkTableToDatabaseWriter::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 vtkTableWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
virtual int vtkTableToDatabaseWriter::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 vtkTableWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
static vtkTableToDatabaseWriter* vtkTableToDatabaseWriter::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkTableWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
void vtkTableToDatabaseWriter::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 vtkTableWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
bool vtkTableToDatabaseWriter::SetDatabase | ( | vtkSQLDatabase * | db | ) |
Set the database. Must already be open.
bool vtkTableToDatabaseWriter::SetTableName | ( | const char * | name | ) |
Set the name of the new SQL table that you'd this writer to create. Returns false if the specified table already exists in the database.
bool vtkTableToDatabaseWriter::TableNameIsNew | ( | ) |
Check if the currently specified table name exists in the database.
vtkSQLDatabase* vtkTableToDatabaseWriter::GetDatabase | ( | ) | [inline] |
Definition at line 47 of file vtkTableToDatabaseWriter.h.
vtkTable* vtkTableToDatabaseWriter::GetInput | ( | ) |
Get the input to this writer.
Reimplemented from vtkTableWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
vtkTable* vtkTableToDatabaseWriter::GetInput | ( | int | port | ) |
Get the input to this writer.
Reimplemented from vtkTableWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
virtual void vtkTableToDatabaseWriter::WriteData | ( | ) | [protected, pure virtual] |
Reimplemented from vtkTableWriter.
Implemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
virtual int vtkTableToDatabaseWriter::FillInputPortInformation | ( | int | port, | |
vtkInformation * | info | |||
) | [protected, virtual] |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkTableWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
vtkSQLDatabase* vtkTableToDatabaseWriter::Database [protected] |
Definition at line 63 of file vtkTableToDatabaseWriter.h.
vtkTable* vtkTableToDatabaseWriter::Input [protected] |
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
Definition at line 64 of file vtkTableToDatabaseWriter.h.
vtkstd::string vtkTableToDatabaseWriter::TableName [protected] |
Definition at line 66 of file vtkTableToDatabaseWriter.h.