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

Method GetOptionBackendFromHandle

IO/SQL/vtkSQLDatabaseSchema.cxx:658–675  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

656
657//------------------------------------------------------------------------------
658const char* vtkSQLDatabaseSchema::GetOptionBackendFromHandle(int tblHandle, int optHandle)
659{
660 if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables())
661 {
662 vtkErrorMacro("Cannot get backend of an option in non-existent table " << tblHandle);
663 return nullptr;
664 }
665
666 if (optHandle < 0 ||
667 optHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Options.size()))
668 {
669 vtkErrorMacro(
670 "Cannot get backend of non-existent option " << optHandle << " in table " << tblHandle);
671 return nullptr;
672 }
673
674 return this->Internals->Tables[tblHandle].Options[optHandle].Backend.c_str();
675}
676
677//------------------------------------------------------------------------------
678int vtkSQLDatabaseSchema::AddTableMultipleArguments(const char* tblName, ...)

Callers 1

EffectSchemaMethod · 0.80

Calls 3

GetNumberOfTablesMethod · 0.95
sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected