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

Method GetColumnAttributesFromHandle

IO/SQL/vtkSQLDatabaseSchema.cxx:516–533  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

514
515//------------------------------------------------------------------------------
516const char* vtkSQLDatabaseSchema::GetColumnAttributesFromHandle(int tblHandle, int colHandle)
517{
518 if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables())
519 {
520 vtkErrorMacro("Cannot get attributes of a column in non-existent table " << tblHandle);
521 return nullptr;
522 }
523
524 if (colHandle < 0 ||
525 colHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Columns.size()))
526 {
527 vtkErrorMacro(
528 "Cannot get attributes of non-existent column " << colHandle << " in table " << tblHandle);
529 return nullptr;
530 }
531
532 return this->Internals->Tables[tblHandle].Columns[colHandle].Attributes.c_str();
533}
534
535//------------------------------------------------------------------------------
536int vtkSQLDatabaseSchema::GetTriggerHandleFromName(const char* tblName, const char* trgName)

Callers 5

Calls 3

GetNumberOfTablesMethod · 0.95
sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected