http://stxxl.sourceforge.net
<dementiev@ira.uka.de>
<beckmann@cs.uni-frankfurt.de>
<singler@kit.edu>
http://www.boost.org/LICENSE_1_0.txt
#ifndef STXXL_WFSFILEBASE_HEADER
#define STXXL_WFSFILEBASE_HEADER
#ifdef STXXL_BOOST_CONFIG
#include <boost/config.hpp>
#endif
#ifdef BOOST_MSVC
#include <stxxl/bits/io/file.h>
#include <stxxl/bits/io/request.h>
#include <windows.h>
__STXXL_BEGIN_NAMESPACE
class wfs_file_base : public virtual file
{
protected:
mutex fd_mutex;
HANDLE file_des;
int mode_;
const std::string filename;
offset_type bytes_per_sector;
bool locked;
wfs_file_base(const std::string & filename, int mode);
offset_type _size();
void close();
public:
~wfs_file_base();
offset_type size();
void set_size(offset_type newsize);
void lock();
const char * io_type() const;
void remove();
};
__STXXL_END_NAMESPACE
#endif
#endif