Commit Graph

65 Commits

Author SHA1 Message Date
Max Horn
0d34b772a4 Fixed a nasty bug in SearchManager::addDirectory; made the 'char' constructor of Common::String explicit, to avoid such bugs in the future
svn-id: r34660
2008-09-27 18:34:24 +00:00
Max Horn
479e67f2f2 Modified Common::SearchSet to take signed integer priorities, for convenience (so that one can add archives with less-than-default priority)
svn-id: r34659
2008-09-27 18:32:01 +00:00
Vicent Marti
6699a596ed Fixed "empty control statement" warning in FSDirectory::matchPattern().
svn-id: r34605
2008-09-20 10:32:59 +00:00
Max Horn
722d134e7e Added 'native' implementations for FSDirectory::matchPattern & SearchSet::getAllNames (untested)
svn-id: r34599
2008-09-18 08:19:00 +00:00
Max Horn
3178fad0a4 Simplified & fixed SearchManager
svn-id: r34598
2008-09-17 18:59:09 +00:00
Max Horn
5f2ceea1df Corrected and shortened some file opening related warnings
svn-id: r34556
2008-09-15 12:37:18 +00:00
Nicola Mettifogo
166386b581 Added first version of the SearchManager, as it is presented in patch tracker item 2093502.
svn-id: r34492
2008-09-11 13:24:01 +00:00
Johannes Schickel
093431e88d Added hasArchive to SearchSet.
svn-id: r34397
2008-09-06 22:09:34 +00:00
Max Horn
e5c8ebf995 Fix class FSDirectory (matchPattern would call getAllNames would call matchPattern would call ...); some cleanup
svn-id: r34366
2008-09-05 20:26:36 +00:00
Max Horn
2c20e138a2 Make use of String::matchString
svn-id: r34365
2008-09-05 20:08:29 +00:00
Nicola Mettifogo
5c6e286c68 Made FSDirectory use the default matchPattern implementation.
svn-id: r34360
2008-09-05 18:28:25 +00:00
Nicola Mettifogo
87d67be832 * Implemented a default matchPattern for Archive subclasses (courtesy of Fingolfin).
* Fixed bug in FSDirectory::matchPattern.

svn-id: r34359
2008-09-05 18:24:41 +00:00
Max Horn
5409b2b456 Changed FSDirectory::getSubDirectory to return a FSDirectory pointer instead of a SharedPtr
svn-id: r34334
2008-09-04 20:03:08 +00:00
Max Horn
e1918341af Changed Archive::openFile to return a SeekableReadStream* instead of a FilePtr
svn-id: r34312
2008-09-03 17:07:13 +00:00
Nicola Mettifogo
9fb10e2540 * Added Archive, an interface for searching into file containers.
* Added FSDirectory, an Archive implementation that models a directory from the filesystem.
* Added SearchSet, an Archive implementation that allows searching multiple Archives.
See patch 2034983 on sf.net.

svn-id: r34227
2008-08-31 13:58:17 +00:00