Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  
fileop.h
00001 /***************************************************************************
00002     copyright            : (C) 2002-2008 by Stefano Barbato
00003     email                : stefano@codesink.org
00004 
00005     $Id: fileop.h,v 1.7 2008-10-07 11:06:26 tat Exp $
00006  ***************************************************************************/
00007 #ifndef _MIMETIC_OS_FILEOP_H
00008 #define _MIMETIC_OS_FILEOP_H
00009 #include <string>
00010 
00011 /**
00012   *@author 
00013   */
00014 namespace mimetic
00015 {
00016 
00017 /// Defines some file utility functions
00018 struct FileOp
00019 {
00020     typedef unsigned int uint;
00021     /* static funtions */
00022     static bool remove(const std::string&);
00023     static bool move(const std::string&, const std::string&);
00024     static bool exists(const std::string&);
00025 
00026     static uint size(const std::string&);
00027     static uint ctime(const std::string&); // creation time
00028     static uint atime(const std::string&); // last time accessed(r/w)
00029     static uint mtime(const std::string&); // last time written
00030 };
00031 
00032 }
00033 
00034 
00035 #endif
00036