示例#1
0
PostProcessing* PostProcessing::createInstanceFromString(std::string const &postProcessingType){
    
    StringPostProcessingMap::iterator iter = getMap()->find( postProcessingType );
    if( iter == getMap()->end() ){
        return NULL;
    }
    return iter->second();
}
示例#2
0
PostProcessing* PostProcessing::create(const std::string &id){
    
    StringPostProcessingMap::iterator iter = getMap()->find( id );
    if( iter == getMap()->end() ){
        return NULL;
    }
    return iter->second();
}