void Hook::invokeHook(Scenario *scenario, CallableStep *) { if (tagsMatch(scenario)) { body(); } else { skipHook(); } }
XmlTree::Container::const_iterator XmlTree::findNextChildNamed( const Container &sequence, Container::const_iterator firstCandidate, const string &searchTag, bool caseSensitive ) { Container::const_iterator result = firstCandidate; while( result != sequence.end() ) { if( tagsMatch( (*result)->getTag(), searchTag, caseSensitive ) ) break; else ++result; } return result; }