Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  

file.h

00001 /***************************************************************************
00002     copyright            : (C) 2002-2005 by Stefano Barbato
00003     email                : stefano@codesink.org
00004 
00005     $Id: file.h,v 1.7 2005/02/23 10:26:15 tat Exp $
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 #ifndef _MIMETIC_OS_FILE_H
00017 #define _MIMETIC_OS_FILE_H
00018 #include <sys/types.h>
00019 #include <sys/stat.h>
00020 #include <fcntl.h>
00021 #include <cstdio>
00022 #include <string>
00023 #include <iterator>
00024 #include <mimetic/libconfig.h>
00025 #include <mimetic/os/stdfile.h>
00026 #ifdef HAVE_MMAP
00027 #include <mimetic/os/mmfile.h>
00028 #endif
00029 
00030 namespace mimetic
00031 {
00032 
00033 #if HAVE_MMAP == 1
00034 typedef MMFile File;
00035 #else
00036 typedef StdFile File;
00037 #endif
00038 
00039 }
00040 
00041 
00042 
00043 #endif
00044