OpenMW
Public Member Functions | Private Types | Private Attributes
Files::Collections Class Reference

#include <collections.hpp>

List of all members.

Public Member Functions

 Collections ()
 Directories are listed with increasing priority.
 Collections (const Files::PathContainer &directories, bool foldCase)
const MultiDirCollectiongetCollection (const std::string &extension) const
boost::filesystem::path getPath (const std::string &file) const
bool doesExist (const std::string &file) const
const Files::PathContainergetPaths () const

Private Types

typedef std::map< std::string,
MultiDirCollection
MultiDirCollectionContainer

Private Attributes

Files::PathContainer mDirectories
bool mFoldCase
MultiDirCollectionContainer mCollections

Member Typedef Documentation

typedef std::map<std::string, MultiDirCollection> Files::Collections::MultiDirCollectionContainer [private]

Constructor & Destructor Documentation

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.


Member Function Documentation

bool Files::Collections::doesExist ( const std::string &  file) const
Returns:
Does a file with the given name exist?
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.


Member Data Documentation


The documentation for this class was generated from the following files: