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

Method GetTriggerActionFromHandle

IO/SQL/vtkSQLDatabaseSchema.cxx:598–615  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

596
597//------------------------------------------------------------------------------
598const char* vtkSQLDatabaseSchema::GetTriggerActionFromHandle(int tblHandle, int trgHandle)
599{
600 if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables())
601 {
602 vtkErrorMacro("Cannot get action of a trigger in non-existent table " << tblHandle);
603 return nullptr;
604 }
605
606 if (trgHandle < 0 ||
607 trgHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Triggers.size()))
608 {
609 vtkErrorMacro(
610 "Cannot get action of non-existent trigger " << trgHandle << " in table " << tblHandle);
611 return nullptr;
612 }
613
614 return this->Internals->Tables[tblHandle].Triggers[trgHandle].Action.c_str();
615}
616
617//------------------------------------------------------------------------------
618const char* vtkSQLDatabaseSchema::GetTriggerBackendFromHandle(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