Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

SeekableReadStream * Common::SearchSet::createReadStreamForMember ( const String name  )  const [virtual]

Implements createReadStreamForMember from Archive base class. The current policy is opening the first file encountered that matches the name.

Implements Common::Archive.

Definition at line 211 of file archive.cpp.

References Common::List< t_T >::begin(), Common::String::empty(), and Common::List< t_T >::end().

      if (name.empty())
            return 0;

      ArchiveNodeList::const_iterator it = _list.begin();
      for ( ; it != _list.end(); ++it) {
            SeekableReadStream *stream = it->_arc->createReadStreamForMember(name);
            if (stream)
                  return stream;

      return 0;

Generated by  Doxygen 1.6.0   Back to index