diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-03 18:53:40 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-03 18:53:40 +0000 |
commit | 43b994017a560a2fa97894ebfe121375d6614b6f (patch) | |
tree | bebdf504c283a797707f92d46e7d3ed8b5100a9d /src/filesystem/vfile.h | |
parent | 6011bbb179f72a370411960eafdbbc98e6607f05 (diff) |
basic client console
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__ |