diff options
Diffstat (limited to 'src/filesystem/vfile.h')
-rw-r--r-- | src/filesystem/vfile.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/filesystem/vfile.h b/src/filesystem/vfile.h new file mode 100644 index 0000000..a64dbc6 --- /dev/null +++ b/src/filesystem/vfile.h @@ -0,0 +1,31 @@ +/* + filesystem/vfile.h + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 +*/ + +#ifndef __INCLUDED_FILESYSTEM_VFILE_H__ +#define __INCLUDED_FILESYSTEM_VFILE_H__ + +// project headers +#include "filesystem/filesystem.h" + +namespace filesystem { + +/// a file in the virtual file system +class VFile { + +public: + /// search the path for a file in the virtual + /** If the file can not be found in any of the data directories, + * an empty string will be returned + */ + static std::string find(const char *filename); + + /// returns true if a file exists in the virtual filesystem + static bool exists(const char *filename); +}; + +} + +#endif //__INCLUDED_FILESYSTEM_VFILE_H__ |