Main Page Class Hierarchy Alphabetical List Compound List Examples

file.h
1/***************************************************************************
2 copyright : (C) 2002-2008 by Stefano Barbato
3 email : stefano@codesink.org
4
5 $Id: file.h,v 1.8 2008-10-07 11:06:26 tat Exp $
6 ***************************************************************************/
7#ifndef _MIMETIC_OS_FILE_H
8#define _MIMETIC_OS_FILE_H
9#include <sys/types.h>
10#include <sys/stat.h>
11#include <fcntl.h>
12#include <cstdio>
13#include <string>
14#include <iterator>
15#include <mimetic/libconfig.h>
16#include <mimetic/os/stdfile.h>
17#ifdef HAVE_MMAP
18#include <mimetic/os/mmfile.h>
19#endif
20
21 namespace mimetic
22{
23
24#if HAVE_MMAP == 1
25 typedef MMFile File;
26#else
27 typedef StdFile File;
28#endif
29
30}
31
32
33
34#endif
35
mimetic
Definition body.h:18
mimetic::MMFile
Memory mapped file.
Definition mmfile.h:22