Main Page Class Hierarchy Alphabetical List Compound List Examples

fileop.h
1/***************************************************************************
2 copyright : (C) 2002-2008 by Stefano Barbato
3 email : stefano@codesink.org
4
5 $Id: fileop.h,v 1.7 2008-10-07 11:06:26 tat Exp $
6 ***************************************************************************/
7#ifndef _MIMETIC_OS_FILEOP_H
8#define _MIMETIC_OS_FILEOP_H
9#include <string>
10
11/**
12 *@author
13 */
14 namespace mimetic
15{
16
17/// Defines some file utility functions
18 struct FileOp
19{
20 typedef unsigned int uint;
21 /* static funtions */
22 static bool remove(const std::string&);
23 static bool move(const std::string&, const std::string&);
24 static bool exists(const std::string&);
25
26 static uint size(const std::string&);
27 static uint ctime(const std::string&); // creation time
28 static uint atime(const std::string&); // last time accessed(r/w)
29 static uint mtime(const std::string&); // last time written
30};
31
32}
33
34
35#endif
36
mimetic
Definition body.h:18
mimetic::FileOp
Defines some file utility functions.
Definition fileop.h:19