|
OpenMW
|
#include <collections.hpp>
Public Member Functions | |
| Collections () | |
| Directories are listed with increasing priority. | |
| Collections (const Files::PathContainer &directories, bool foldCase) | |
| const MultiDirCollection & | getCollection (const std::string &extension) const |
| boost::filesystem::path | getPath (const std::string &file) const |
| bool | doesExist (const std::string &file) const |
| const Files::PathContainer & | getPaths () const |
Private Types | |
| typedef std::map< std::string, MultiDirCollection > | MultiDirCollectionContainer |
Private Attributes | |
| Files::PathContainer | mDirectories |
| bool | mFoldCase |
| MultiDirCollectionContainer | mCollections |
typedef std::map<std::string, MultiDirCollection> Files::Collections::MultiDirCollectionContainer [private] |
Directories are listed with increasing priority.
| Files::Collections::Collections | ( | const Files::PathContainer & | directories, |
| bool | foldCase | ||
| ) |
Return a file collection for the given extension. Extension must contain the leading dot and must be all lower-case.
| bool Files::Collections::doesExist | ( | const std::string & | file | ) | const |
| const MultiDirCollection & Files::Collections::getCollection | ( | const std::string & | extension | ) | const |
| boost::filesystem::path Files::Collections::getPath | ( | const std::string & | file | ) | const |
Return full path (including filename) of file.
If the file does not exist in any of the collection's directories, an exception is thrown. file must include the extension.
| const Files::PathContainer & Files::Collections::getPaths | ( | ) | const |
MultiDirCollectionContainer Files::Collections::mCollections [mutable, private] |
bool Files::Collections::mFoldCase [private] |
1.7.6.1