OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Types | Private Attributes | List of all members
Files::Collections Class Reference

#include <collections.hpp>

Collaboration diagram for Files::Collections:

Public Member Functions

 Collections ()
 Directories are listed with increasing priority. More...
 
 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

Constructor & Destructor Documentation

Files::Collections::Collections ( )

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?

Here is the call graph for this function:

Here is the caller graph for this function:

const MultiDirCollection & Files::Collections::getCollection ( const std::string &  extension) const

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

const Files::PathContainer & Files::Collections::getPaths ( ) const

Here is the caller graph for this function:

Member Data Documentation

MultiDirCollectionContainer Files::Collections::mCollections
mutableprivate
Files::PathContainer Files::Collections::mDirectories
private
bool Files::Collections::mFoldCase
private

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