vtkDatabaseToTableReader Class Reference

#include <vtkDatabaseToTableReader.h>

Inheritance diagram for vtkDatabaseToTableReader:

Inheritance graph
[legend]
Collaboration diagram for vtkDatabaseToTableReader:

Collaboration graph
[legend]

List of all members.


Detailed Description

Read an SQL table as a vtkTable.

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 ()
vtkSQLDatabaseGetDatabase ()

Static Public Member Functions

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

Protected Member Functions

 vtkDatabaseToTableReader ()
 ~vtkDatabaseToTableReader ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)=0

Protected Attributes

vtkSQLDatabaseDatabase
vtkstd::string TableName

Member Typedef Documentation

Reimplemented from vtkTableReader.

Reimplemented in vtkMySQLToTableReader, vtkPostgreSQLToTableReader, and vtkSQLiteToTableReader.

Definition at line 34 of file vtkDatabaseToTableReader.h.


Constructor & Destructor Documentation

vtkDatabaseToTableReader::vtkDatabaseToTableReader (  )  [protected]

vtkDatabaseToTableReader::~vtkDatabaseToTableReader (  )  [protected]


Member Function Documentation

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

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]

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]


Member Data Documentation

Definition at line 54 of file vtkDatabaseToTableReader.h.

vtkstd::string vtkDatabaseToTableReader::TableName [protected]

Definition at line 56 of file vtkDatabaseToTableReader.h.


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

Generated on Wed Aug 24 11:32:55 2011 for VTK by  doxygen 1.5.6