#include <fileManager.h>
Public Types | ||||
enum | eType { kNoFile = -3, kUnknown = -2, kEmpty = -1, kXml = 1, kModel, kMapEnt, kImage, kSound } | |||
File type. More... | ||||
Static Public Member Functions | ||||
static eType | get_type (const char *filename, bool check=false) | |||
static void | clear_paths () | |||
Reset paths. | ||||
static void | t7_path (const std::string &str) | |||
| ||||
static void | proj_path (const std::string &str) | |||
| ||||
static const std::string & | t7_path () | |||
| ||||
static const std::string & | proj_path () | |||
| ||||
static bool | locate (std::string &filepath, const std::string &filename) | |||
static bool | exists (const char *filepath) |
(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.
enum CFileManager::eType |
CFileManager::eType CFileManager::get_type | ( | const char * | filename, | |
bool | check = false | |||
) | [static] |
Return the type of file filename is using its extension
filename | Name of the file | |
check | If true, check to see if the file exists first |
bool CFileManager::locate | ( | std::string & | filepath, | |
const std::string & | filename | |||
) | [static] |
filepath | Full path to filename given (if there is one). | |
filename | Filename we are looking for. |
bool CFileManager::exists | ( | const char * | filepath | ) | [static] |
filepath | Full path to file we want to check. |