17 #ifndef STXXL_WFSFILEBASE_HEADER 18 #define STXXL_WFSFILEBASE_HEADER 20 #ifdef STXXL_BOOST_CONFIG 21 #include <boost/config.hpp> 26 #include <stxxl/bits/io/file.h> 27 #include <stxxl/bits/io/request.h> 31 __STXXL_BEGIN_NAMESPACE
37 class wfs_file_base :
public virtual file 43 const std::string filename;
44 offset_type bytes_per_sector;
46 wfs_file_base(
const std::string & filename,
int mode);
63 #endif // #ifdef BOOST_MSVC 65 #endif // !STXXL_WFSFILEBASE_HEADER virtual void set_size(offset_type newsize)=0
Changes the size of the file.
Defines interface of file.
Definition: file.h:90
virtual const char * io_type() const
Identifies the type of I/O implementation.
Definition: file.h:214
virtual offset_type size()=0
Returns size of the file.
virtual void lock()=0
Locks file for reading and writing (acquires a lock in the file system)