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

Method GetTriggerNameFromHandle

IO/SQL/vtkSQLDatabaseSchema.cxx:558–575  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

556
557//------------------------------------------------------------------------------
558const char* vtkSQLDatabaseSchema::GetTriggerNameFromHandle(int tblHandle, int trgHandle)
559{
560 if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables())
561 {
562 vtkErrorMacro("Cannot get name of a trigger in non-existent table " << tblHandle);
563 return nullptr;
564 }
565
566 if (trgHandle < 0 ||
567 trgHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Triggers.size()))
568 {
569 vtkErrorMacro(
570 "Cannot get name of non-existent trigger " << trgHandle << " in table " << tblHandle);
571 return nullptr;
572 }
573
574 return this->Internals->Tables[tblHandle].Triggers[trgHandle].Name.c_str();
575}
576
577//------------------------------------------------------------------------------
578int vtkSQLDatabaseSchema::GetTriggerTypeFromHandle(int tblHandle, int trgHandle)

Callers 2

TestSQLDatabaseSchemaFunction · 0.80

Calls 3

GetNumberOfTablesMethod · 0.95
sizeMethod · 0.45
c_strMethod · 0.45

Tested by 1

TestSQLDatabaseSchemaFunction · 0.64