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