예제 #1
0
void Hook::invokeHook(Scenario *scenario, CallableStep *) {
    if (tagsMatch(scenario)) {
        body();
    } else {
        skipHook();
    }
}
예제 #2
0
파일: Xml.cpp 프로젝트: Ahbee/Cinder
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;
}