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

ArchiveMemberPtr Common::SearchSet::getMember ( const String name  )  [virtual]

Returns a ArchiveMember representation of the given file.

Implements Common::Archive.

Definition at line 198 of file archive.cpp.

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

      if (name.empty())
            return ArchiveMemberPtr();

      ArchiveNodeList::iterator it = _list.begin();
      for ( ; it != _list.end(); ++it) {
            if (it->_arc->hasFile(name))
                  return it->_arc->getMember(name);

      return ArchiveMemberPtr();

Generated by  Doxygen 1.6.0   Back to index