Stxxl  1.3.2
syscall_file.h
1 /***************************************************************************
2  * include/stxxl/bits/io/syscall_file.h
3  *
4  * Part of the STXXL. See http://stxxl.sourceforge.net
5  *
6  * Copyright (C) 2002 Roman Dementiev <[email protected]>
7  * Copyright (C) 2008 Andreas Beckmann <[email protected]>
8  * Copyright (C) 2009 Johannes Singler <[email protected]>
9  *
10  * Distributed under the Boost Software License, Version 1.0.
11  * (See accompanying file LICENSE_1_0.txt or copy at
12  * http://www.boost.org/LICENSE_1_0.txt)
13  **************************************************************************/
14 
15 #ifndef STXXL_SYSCALL_FILE_HEADER
16 #define STXXL_SYSCALL_FILE_HEADER
17 
18 #include <stxxl/bits/io/ufs_file_base.h>
19 #include <stxxl/bits/io/disk_queued_file.h>
20 
21 
22 __STXXL_BEGIN_NAMESPACE
23 
26 
29 {
30 public:
37  const std::string & filename,
38  int mode,
39  int queue_id = DEFAULT_QUEUE,
40  int allocator_id = NO_ALLOCATOR) : ufs_file_base(filename, mode), disk_queued_file(queue_id, allocator_id)
41  { }
42  void serve(const request * req) throw (io_error);
43  const char * io_type() const;
44 };
45 
47 
48 __STXXL_END_NAMESPACE
49 
50 #endif // !STXXL_SYSCALL_FILE_HEADER
Base for UNIX file system implementations.
Definition: ufs_file_base.h:30
syscall_file(const std::string &filename, int mode, int queue_id=DEFAULT_QUEUE, int allocator_id=NO_ALLOCATOR)
constructs file object
Definition: syscall_file.h:36
Request with basic properties like file and offset.
Definition: request.h:39
Implementation of file based on UNIX syscalls.
Definition: syscall_file.h:28
const char * io_type() const
Identifies the type of I/O implementation.
Definition: syscall_file.cpp:103
Implementation of some file methods based on serving_request.
Definition: disk_queued_file.h:26