------------------------------------------------------------------------------
| 636 | |
| 637 | //------------------------------------------------------------------------------ |
| 638 | const char* vtkSQLDatabaseSchema::GetOptionTextFromHandle(int tblHandle, int optHandle) |
| 639 | { |
| 640 | if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables()) |
| 641 | { |
| 642 | vtkErrorMacro("Cannot get text of an option in non-existent table " << tblHandle); |
| 643 | return nullptr; |
| 644 | } |
| 645 | |
| 646 | if (optHandle < 0 || |
| 647 | optHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Options.size())) |
| 648 | { |
| 649 | vtkErrorMacro( |
| 650 | "Cannot get text of non-existent option " << optHandle << " in table " << tblHandle); |
| 651 | return nullptr; |
| 652 | } |
| 653 | |
| 654 | return this->Internals->Tables[tblHandle].Options[optHandle].Text.c_str(); |
| 655 | } |
| 656 | |
| 657 | //------------------------------------------------------------------------------ |
| 658 | const char* vtkSQLDatabaseSchema::GetOptionBackendFromHandle(int tblHandle, int optHandle) |
no test coverage detected