| 594 | } |
| 595 | |
| 596 | bool InterfaceElement::hasExactInputMatch(ConstInterfaceElementPtr declaration, string* message) const |
| 597 | { |
| 598 | for (InputPtr input : getActiveInputs()) |
| 599 | { |
| 600 | InputPtr declarationInput = declaration->getActiveInput(input->getName()); |
| 601 | if (!declarationInput || |
| 602 | declarationInput->getType() != input->getType()) |
| 603 | { |
| 604 | if (message) |
| 605 | { |
| 606 | *message += "Input '" + input->getName() + "' doesn't match declaration"; |
| 607 | } |
| 608 | return false; |
| 609 | } |
| 610 | } |
| 611 | return true; |
| 612 | } |
| 613 | |
| 614 | MATERIALX_NAMESPACE_END |
nothing calls this directly
no test coverage detected