gk::IOFileSystem Struct Reference

List of all members.

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.

Member Function Documentation

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]

verifie que b est plus recent que a, si b existe.

renvoie 0 si b n'existe pas et -1 en cas d'erreur (a n'existe pas).

References compare(), and infos().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Friends
Generated on Thu Sep 22 16:34:00 2011 for gKitGL by  doxygen 1.6.3