MCPcopy Create free account
hub / github.com/Kitware/VTK / SetDatabase

Method SetDatabase

IO/SQL/vtkDatabaseToTableReader.cxx:31–50  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

29
30//------------------------------------------------------------------------------
31bool 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//------------------------------------------------------------------------------
53bool vtkDatabaseToTableReader::SetTableName(const char* name)

Callers

nothing calls this directly

Calls 3

CheckIfTableExistsMethod · 0.95
IsOpenMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected