void Hook::invokeHook(Scenario *scenario, CallableStep *) {
    if (tagsMatch(scenario)) {
        body();
    } else {
        skipHook();
    }
}
Exemple #2
0
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;
}