Thrill  0.1
create_file.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  * foxxll/io/create_file.hpp
3  *
4  * Part of FOXXLL. See http://foxxll.org
5  *
6  * Copyright (C) 2010 Andreas Beckmann <[email protected]>
7  * Copyright (C) 2013 Timo Bingmann <[email protected]>
8  *
9  * Distributed under the Boost Software License, Version 1.0.
10  * (See accompanying file LICENSE_1_0.txt or copy at
11  * http://www.boost.org/LICENSE_1_0.txt)
12  **************************************************************************/
13 
14 #ifndef FOXXLL_IO_CREATE_FILE_HEADER
15 #define FOXXLL_IO_CREATE_FILE_HEADER
16 
17 #include <string>
18 
19 #include <foxxll/io/file.hpp>
20 
21 namespace foxxll {
22 
23 //! create fileio object from io_impl string and a few parameters
24 file_ptr create_file(const std::string& io_impl,
25  const std::string& filename,
26  int options,
27  int physical_device_id = file::DEFAULT_QUEUE,
28  int disk_allocator_id = file::NO_ALLOCATOR);
29 
30 // prototype
31 class disk_config;
32 
33 //! create fileio object from disk_config parameter
34 file_ptr create_file(disk_config& config, int mode,
35  int disk_allocator_id = file::NO_ALLOCATOR);
36 
37 } // namespace foxxll
38 
39 #endif // !FOXXLL_IO_CREATE_FILE_HEADER
40 
41 /**************************************************************************/
file_ptr create_file(const std::string &io_impl, const std::string &filename, int options, int physical_device_id, int disk_allocator_id)
create fileio object from io_impl string and a few parameters
Definition: create_file.cpp:29
static const int DEFAULT_QUEUE
Definition: file.hpp:89
FOXXLL library namespace
std::basic_string< char, std::char_traits< char >, Allocator< char > > string
string with Manager tracking
Definition: allocator.hpp:220
tlx::counting_ptr< file > file_ptr
A reference counting pointer for file.
Definition: file.hpp:265
static const int NO_ALLOCATOR
Definition: file.hpp:91