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

#include <vtkTableToDatabaseWriter.h>

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

List of all members.

Public Types

typedef vtkWriter Superclass

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkTableToDatabaseWriter ()
 ~vtkTableToDatabaseWriter ()
virtual void WriteData ()=0
virtual int FillInputPortInformation (int port, vtkInformation *info)

Protected Attributes

vtkSQLDatabaseDatabase
vtkTableInput
std::string TableName

Detailed Description

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.


Member Typedef Documentation

Reimplemented from vtkWriter.

Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.

Definition at line 36 of file vtkTableToDatabaseWriter.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

virtual vtkObjectBase* vtkTableToDatabaseWriter::NewInstanceInternal ( ) const [protected, virtual]
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.

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.

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]
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.


Member Data Documentation

Definition at line 65 of file vtkTableToDatabaseWriter.h.

std::string vtkTableToDatabaseWriter::TableName [protected]

Definition at line 68 of file vtkTableToDatabaseWriter.h.


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