STXXL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
create_file.h
Go to the documentation of this file.
1 /***************************************************************************
2  * include/stxxl/bits/io/create_file.h
3  *
4  * Part of the STXXL. See http://stxxl.sourceforge.net
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 STXXL_IO_CREATE_FILE_HEADER
15 #define STXXL_IO_CREATE_FILE_HEADER
16 
17 #include <stxxl/bits/io/file.h>
18 #include <stxxl/bits/namespace.h>
19 
20 #include <string>
21 
23 
24 //! create fileio object from io_impl string and a few parameters
25 file * create_file(const std::string& io_impl,
26  const std::string& filename,
27  int options,
28  int physical_device_id = file::DEFAULT_QUEUE,
29  int disk_allocator_id = file::NO_ALLOCATOR);
30 
31 // prototype
32 class disk_config;
33 
34 //! create fileio object from disk_config parameter
35 file * create_file(disk_config& config, int mode,
36  int disk_allocator_id = file::NO_ALLOCATOR);
37 
39 
40 #endif // !STXXL_IO_CREATE_FILE_HEADER
41 // vim: et:ts=4:sw=4
file * create_file(const std::string &io_impl, const std::string &filename, int options, int physical_device_id=file::DEFAULT_QUEUE, int disk_allocator_id=file::NO_ALLOCATOR)
create fileio object from io_impl string and a few parameters
Definition: create_file.cpp:27
#define STXXL_BEGIN_NAMESPACE
Definition: namespace.h:16
#define STXXL_END_NAMESPACE
Definition: namespace.h:17