src/PredFinder/inference/EIFilterManager.cpp
//registers all superfilters (subsequences of filters) from the given superfilter files

registers all superfilters (subsequences of filters) from the given superfilter files
registers all superfilters ( subsequences of filters ) from the given superfilter files
void EIFilterManager::registerSuperFilters(std::vector<std::string> paths) {
	SuperfilterLoadMap superfilters_to_load;
	BOOST_FOREACH(std::string filename, paths) {
		std::wstring name = getName(filename);
		std::vector<std::wstring> sub = getSubfilters(filename);
		if (name.length() > 0 && sub.size() > 0)
			superfilters_to_load[name] = sub;
	}
	for (SuperfilterLoadMap::iterator it = superfilters_to_load.begin();it!=superfilters_to_load.end();it++) {
		getFilters(it->first,superfilters_to_load,std::set<std::wstring>());
	}
}
void EIFilterManager :: registerSuperFilters ( std :: vector < std :: string > paths ) { SuperfilterLoadMap superfilters_to_load ; BOOST_FOREACH ( std :: string filename , paths ) { std :: wstring name = getName ( filename ) ; std :: vector < std :: wstring > sub = getSubfilters ( filename ) ; if ( name . length ( ) > 0 && sub . size ( ) > 0 ) superfilters_to_load [ name ] = sub ; } for ( SuperfilterLoadMap :: iterator it = superfilters_to_load . begin ( ) ; it != superfilters_to_load . end ( ) ; it ++ ) { getFilters ( it -> first , superfilters_to_load , std :: set < std :: wstring > ( ) ) ; } }
registers all superfilters (subsequences of filters) from the given superfilter files
registers all superfilters ( subsequences of filters ) from the given superfilter files