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 bool | 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 sur un fichier. | |
static int | compare (const size_t a, const size_t b) |
compare 2 dates de fichiers. | |
static int | uptodate (const std::string &filea, const std::string &fileb) |
verifie que b est plus recent que a, si b existe. |
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") == "./"
static int gk::IOFileSystem::compare | ( | const size_t | a, | |
const size_t | b | |||
) | [inline, static] |
compare 2 dates de fichiers.
renvoie -1 si a est plus vieux que b et 1 dans le cas contraire.
Referenced by uptodate().
static int gk::IOFileSystem::uptodate | ( | const std::string & | filea, | |
const std::string & | fileb | |||
) | [inline, static] |