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

Method GetColumnSizeFromHandle

IO/SQL/vtkSQLDatabaseSchema.cxx:496–513  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

494
495//------------------------------------------------------------------------------
496int vtkSQLDatabaseSchema::GetColumnSizeFromHandle(int tblHandle, int colHandle)
497{
498 if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables())
499 {
500 vtkErrorMacro("Cannot get size of a column in non-existent table " << tblHandle);
501 return -1;
502 }
503
504 if (colHandle < 0 ||
505 colHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Columns.size()))
506 {
507 vtkErrorMacro(
508 "Cannot get size of non-existent column " << colHandle << " in table " << tblHandle);
509 return -1;
510 }
511
512 return this->Internals->Tables[tblHandle].Columns[colHandle].Size;
513}
514
515//------------------------------------------------------------------------------
516const char* vtkSQLDatabaseSchema::GetColumnAttributesFromHandle(int tblHandle, int colHandle)

Callers 5

Calls 2

GetNumberOfTablesMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected