mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
27 lines
770 B
C++
27 lines
770 B
C++
|
#ifndef COMPONENTS_FILES_COLLECTION_HPP
|
||
|
#define COMPONENTS_FILES_COLLECTION_HPP
|
||
|
|
||
|
#include "multidircollection.hpp"
|
||
|
|
||
|
namespace Files
|
||
|
{
|
||
|
class Collections
|
||
|
{
|
||
|
std::vector<boost::filesystem::path> mDirectories;
|
||
|
bool mFoldCase;
|
||
|
mutable std::map<std::string, MultiDirCollection> mCollections;
|
||
|
|
||
|
public:
|
||
|
|
||
|
Collections (const std::vector<boost::filesystem::path>& directories, bool foldCase);
|
||
|
///< Directories are listed with increasing priority.
|
||
|
|
||
|
const MultiDirCollection& getCollection (const std::string& extension) const;
|
||
|
///< Return a file collection for the given extension. Extension must contain the
|
||
|
/// leading dot and must be all lower-case.
|
||
|
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|