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

Method GetTriggerHandleFromName

IO/SQL/vtkSQLDatabaseSchema.cxx:536–555  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

534
535//------------------------------------------------------------------------------
536int vtkSQLDatabaseSchema::GetTriggerHandleFromName(const char* tblName, const char* trgName)
537{
538 int tblHandle = this->GetTableHandleFromName(tblName);
539 if (tblHandle < 0)
540 {
541 return -1;
542 }
543
544 int i;
545 int ntrg = static_cast<int>(this->Internals->Tables[tblHandle].Triggers.size());
546 std::string trgNameStr(trgName);
547 for (i = 0; i < ntrg; ++i)
548 {
549 if (this->Internals->Tables[tblHandle].Triggers[i].Name == trgNameStr)
550 {
551 return i;
552 }
553 }
554 return -1;
555}
556
557//------------------------------------------------------------------------------
558const char* vtkSQLDatabaseSchema::GetTriggerNameFromHandle(int tblHandle, int trgHandle)

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected