VTK
|
#include <vtkTableToDatabaseWriter.h>
Public Types | |
typedef vtkWriter | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkTableToDatabaseWriter * | NewInstance () const |
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 (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkTableToDatabaseWriter () | |
~vtkTableToDatabaseWriter () | |
virtual void | WriteData ()=0 |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
Protected Attributes | |
vtkSQLDatabase * | Database |
vtkTable * | Input |
std::string | TableName |
in a SQL database.
vtkTableToDatabaseWriter abstract parent class that reads a vtkTable and inserts it into an SQL database.
Definition at line 33 of file vtkTableToDatabaseWriter.h.
Reimplemented from vtkWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
Definition at line 36 of file vtkTableToDatabaseWriter.h.
vtkTableToDatabaseWriter::vtkTableToDatabaseWriter | ( | ) | [protected] |
vtkTableToDatabaseWriter::~vtkTableToDatabaseWriter | ( | ) | [protected] |
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 vtkWriter.
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 vtkWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
static vtkTableToDatabaseWriter* vtkTableToDatabaseWriter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
virtual vtkObjectBase* vtkTableToDatabaseWriter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
Reimplemented from vtkWriter.
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 vtkWriter.
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.
Check if the currently specified table name exists in the database.
vtkSQLDatabase* vtkTableToDatabaseWriter::GetDatabase | ( | ) | [inline] |
Definition at line 49 of file vtkTableToDatabaseWriter.h.
Get the input to this writer.
Reimplemented from vtkWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
Get the input to this writer.
Reimplemented from vtkWriter.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
virtual void vtkTableToDatabaseWriter::WriteData | ( | ) | [protected, pure virtual] |
Implements vtkWriter.
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 vtkAlgorithm.
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
vtkSQLDatabase* vtkTableToDatabaseWriter::Database [protected] |
Definition at line 65 of file vtkTableToDatabaseWriter.h.
vtkTable* vtkTableToDatabaseWriter::Input [protected] |
Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.
Definition at line 66 of file vtkTableToDatabaseWriter.h.
std::string vtkTableToDatabaseWriter::TableName [protected] |
Definition at line 68 of file vtkTableToDatabaseWriter.h.