bool ReaderWriterSet::Handler::reads_extension(const char *ext) const { if (!have_reader()) return false; std::vector<std::string>::const_iterator siter; for (siter = mExtensions.begin(); siter != mExtensions.end(); ++siter) if (!(*siter).compare(ext)) return true; else if (0 == strcasecmp( siter->c_str(), ext)) return true; return false; }
inline ReaderIface* make_reader( Interface* iface ) const { return have_reader() ? mReader(iface) : NULL; }