- Your Widget Set For OpenGL
#include <ufilearchive.hpp>
Inheritance diagram for ufo::UFileArchive:

Public Member Functions | |
| UFileArchive () | |
| UFileArchive (const std::string &searchPath) | |
| void | addArchive (const std::string &arc) |
| bool | removeArchive (const std::string &arc) |
| void | removeAllArchives () |
| void | addSearchPath (const std::string &searchPath) |
| std::string | getSearchPath () const |
| std::vector< std::string > | getSearchPathAsVector () const |
| bool | existsInArchive (const std::string &fileName) |
| std::string | getAbsolutePath (const std::string &fileName) const |
Static Public Member Functions | |
| bool | exists (const std::string &fileName) |
| std::vector< std::string > | readDir (const std::string &path) |
| std::string | dirName (const std::string &path) |
| bool | isDirectory (const std::string &path) |
| UFileArchive * | getDefault () |
| void | setDefault (UFileArchive *archive) |
This class provides two static methods to check the content of a directory and to check whether a file exists. Furthermore, there is one default instance for file archives to load data from.
|
|
Creates an empty file archive. |
|
|
Creates a file archive with the given colon separated search path. |
|
|
adds a further directory to the search path. |
|
|
Adds a colon (i.e. ':') separated list to the search path. |
|
|
Determins the directory component of a given path. Example: dirNname ("/usr/local/foobar"); --> Returns: "/usr/local"
|
|
|
Checks if a file exists
|
|
|
Checks if a file with the given file name exists in the search path
|
|
|
|
|
|
Returns a colon separated list of the search path. Can be tokenized via UString tokenizer.
|
|
|
Returns the search path as vector.
|
|
|
Determines if the given path is really a directory.
|
|
|
Reads the contents of the given directory.
|
|
|
cleans up the search path |
|
|
removes the given directory from the search path |