28 #ifndef vtkQtSQLQuery_h 29 #define vtkQtSQLQuery_h 33 #if (QT_EDITION & QT_MODULE_SQL) 35 #include "vtkGUISupportQtSQLModule.h" 39 class vtkQtSQLQueryInternals;
94 vtkQtSQLQueryInternals* Internals;
100 vtkSetStringMacro(LastErrorText);
108 #endif // (QT_EDITION & QT_MODULE_SQL) 109 #endif // vtkQtSQLQuery_h void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool NextRow()=0
Advance row, return false if past end.
bool Execute() override=0
Execute the query.
virtual const char * GetFieldName(int i)=0
Return the name of the specified query field.
A atomic type representing the union of many types.
virtual bool HasError()=0
Returns true if an error is set, otherwise false.
query class associated with vtkQtSQLDatabase
a simple class to control print indentation
virtual int GetNumberOfFields()=0
The number of fields in the query result.
virtual int GetFieldType(int i)=0
Return the type of the field, using the constants defined in vtkType.h.
virtual vtkVariant DataValue(vtkIdType c)=0
Return data in current row, field c.
executes an sql query and retrieves results
virtual const char * GetLastErrorText()=0
Get the last error text from the query.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
maintains a connection to an sql database