vtkTableToDatabaseWriter Class Reference

#include <vtkTableToDatabaseWriter.h>

Inheritance diagram for vtkTableToDatabaseWriter:

Inheritance graph
[legend]
Collaboration diagram for vtkTableToDatabaseWriter:

Collaboration graph
[legend]

List of all members.


Detailed Description

in a SQL database.

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 ()
vtkSQLDatabaseGetDatabase ()
vtkTableGetInput ()
vtkTableGetInput (int port)

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

vtkSQLDatabaseDatabase
vtkTableInput
vtkstd::string TableName

Member Typedef Documentation

Reimplemented from vtkTableWriter.

Reimplemented in vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, and vtkTableToSQLiteWriter.

Definition at line 34 of file vtkTableToDatabaseWriter.h.


Constructor & Destructor Documentation

vtkTableToDatabaseWriter::vtkTableToDatabaseWriter (  )  [protected]

vtkTableToDatabaseWriter::~vtkTableToDatabaseWriter (  )  [protected]


Member Function Documentation

virtual const char* vtkTableToDatabaseWriter::GetClassName (  )  [virtual]

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]

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]

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.


Member Data Documentation

Definition at line 63 of file vtkTableToDatabaseWriter.h.

vtkstd::string vtkTableToDatabaseWriter::TableName [protected]

Definition at line 66 of file vtkTableToDatabaseWriter.h.


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

Generated on Wed Aug 24 12:10:44 2011 for VTK by  doxygen 1.5.6