Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
blob: a64dbc6dd1cede5d11d8ec216c0e8488d8bd33a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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__