Static Public Member Functions | |
static std::string | pathname (const std::string &filename) |
renvoie le chemin d'acces a un fichier. | |
static std::string | basename (const std::string &filename) |
renvoie le nom du fichier sans son extension (chemin inclus). | |
static bool | isType (const std::string &filename, const std::string &suffix) |
verifie que le fichier est bien du type represente par 'suffix'. | |
static std::string | changeType (const std::string &filename, const std::string &suffix) |
change l'extension du fichier. | |
static int | exists (const std::string &filename) |
verifie l'existance d'un fichier. | |
static int | infos (const std::string &filename, size_t *size, size_t *time) |
renvoie les informations taille et date sur un fichier. | |
static int | infos (const std::string &filename, IOInfo &info) |
renvoie les informations sur un fichier. | |
static int | modified (const std::string &filename, const IOInfo &last_info) |
renvoie 1 si le fichier a ete modifie depuis qu'il a ete lu, 0 sinon, et -1 en cas d'erreur. |
static std::string gk::IOFileSystem::pathname | ( | const std::string & | filename | ) | [inline, static] |
renvoie le chemin d'acces a un fichier.
le chemin est toujours termine par / pathname("path/to/file") == "path/to/" pathname("file") == "./"
Referenced by gk::MaterialLoadFromMTL(), and gk::MeshLoadFromOBJ().
static int gk::IOFileSystem::exists | ( | const std::string & | filename | ) | [inline, static] |
verifie l'existance d'un fichier.
static int gk::IOFileSystem::infos | ( | const std::string & | filename, |
size_t * | size, | ||
size_t * | time | ||
) | [inline, static] |
renvoie les informations taille et date sur un fichier.
size | peut etre NULL si l'information n'est pas souhaitee. |
time | peut etre NULL si l'information n'est pas souhaitee. |
Referenced by gk::IOFileManager::file(), infos(), modified(), and gk::IOFileManager::reload().
static int gk::IOFileSystem::infos | ( | const std::string & | filename, |
IOInfo & | info | ||
) | [inline, static] |
renvoie les informations sur un fichier.
renvoie -1 en cas d'erreur (le fichier n'existe pas, par exemple).
References infos(), gk::IOInfo::size, and gk::IOInfo::time.