108 strm =
new std::ifstream(
path.c_str(), std::ios::in | std::ios::binary);
110#ifdef RDK_USE_BOOST_IOSTREAMS
114 "compressed files are only supported if the RDKit is built with boost::iostreams support");
119 std::ostringstream
errout;
126 std::ostringstream
errout;
132#ifdef RDK_BUILD_THREADSAFE_SSS
133 FileParsers::MultithreadedMolSupplier::Parameters params;
142#ifdef RDK_BUILD_THREADSAFE_SSS
143 if (params.numWriterThreads > 1) {
144 return std::make_unique<FileParsers::MultithreadedSDMolSupplier>(
148 return std::make_unique<FileParsers::ForwardSDMolSupplier>(
strm,
true,
160#ifdef RDK_BUILD_THREADSAFE_SSS
161 if (params.numWriterThreads > 1) {
162 return std::make_unique<FileParsers::MultithreadedSmilesMolSupplier>(
166 return std::make_unique<FileParsers::SmilesMolSupplier>(
strm,
true,
169#ifdef RDK_BUILD_MAEPARSER_SUPPORT
174 return std::make_unique<FileParsers::MaeMolSupplier>(
strm,
true,
184 return std::make_unique<FileParsers::TDTMolSupplier>(
strm,
true,