------------------------------------------------------------------------------
| 29 | |
| 30 | //------------------------------------------------------------------------------ |
| 31 | bool vtkDatabaseToTableReader::SetDatabase(vtkSQLDatabase* db) |
| 32 | { |
| 33 | if (!db) |
| 34 | { |
| 35 | return false; |
| 36 | } |
| 37 | this->Database = db; |
| 38 | if (!this->Database->IsOpen()) |
| 39 | { |
| 40 | vtkErrorMacro(<< "SetDatabase must be passed an open database connection"); |
| 41 | this->Database = nullptr; |
| 42 | return false; |
| 43 | } |
| 44 | |
| 45 | if (!this->TableName.empty()) |
| 46 | { |
| 47 | return this->CheckIfTableExists(); |
| 48 | } |
| 49 | return true; |
| 50 | } |
| 51 | |
| 52 | //------------------------------------------------------------------------------ |
| 53 | bool vtkDatabaseToTableReader::SetTableName(const char* name) |
nothing calls this directly
no test coverage detected