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

Method GetTriggerTypeFromHandle

IO/SQL/vtkSQLDatabaseSchema.cxx:578–595  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

576
577//------------------------------------------------------------------------------
578int vtkSQLDatabaseSchema::GetTriggerTypeFromHandle(int tblHandle, int trgHandle)
579{
580 if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables())
581 {
582 vtkErrorMacro("Cannot get type of a trigger in non-existent table " << tblHandle);
583 return -1;
584 }
585
586 if (trgHandle < 0 ||
587 trgHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Triggers.size()))
588 {
589 vtkErrorMacro(
590 "Cannot get type of non-existent trigger " << trgHandle << " in table " << tblHandle);
591 return -1;
592 }
593
594 return this->Internals->Tables[tblHandle].Triggers[trgHandle].Type;
595}
596
597//------------------------------------------------------------------------------
598const char* vtkSQLDatabaseSchema::GetTriggerActionFromHandle(int tblHandle, int trgHandle)

Callers 2

TestSQLDatabaseSchemaFunction · 0.80

Calls 2

GetNumberOfTablesMethod · 0.95
sizeMethod · 0.45

Tested by 1

TestSQLDatabaseSchemaFunction · 0.64