sim_disk_file Class Reference
[File implementations]

Implementation of disk emulation. More...

#include <simdisk_file.h>

Inheritance diagram for sim_disk_file:
Inheritance graph
[legend]
Collaboration diagram for sim_disk_file:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 sim_disk_file (const std::string &filename, int mode, int queue_id=DEFAULT_QUEUE, int allocator_id=NO_ALLOCATOR)
 constructs file object
void serve (const request *req) throw (io_error)
void set_size (offset_type newsize)
 Changes the size of the file.
const char * io_type () const
 Identifies the type of I/O implementation.

Detailed Description

Implementation of disk emulation.

Remarks:
It is emulation of IBM IC35L080AVVA07 disk's timings

Constructor & Destructor Documentation

sim_disk_file::sim_disk_file ( const std::string &  filename,
int  mode,
int  queue_id = DEFAULT_QUEUE,
int  allocator_id = NO_ALLOCATOR 
) [inline]

constructs file object

Parameters:
filename path of file
Attention:
filename must be resided at memory disk partition
Parameters:
mode open mode, see stxxl::file::open_modes
disk disk(file) identifier

Member Function Documentation

const char* sim_disk_file::io_type (  )  const [virtual]

Identifies the type of I/O implementation.

Returns:
pointer to null terminated string of characters, containing the name of I/O implementation

Reimplemented from ufs_file_base.

void sim_disk_file::set_size ( offset_type  newsize  )  [virtual]

Changes the size of the file.

Parameters:
newsize new file size

Reimplemented from ufs_file_base.


The documentation for this class was generated from the following file:

Generated on 10 Jun 2014 for Stxxl by  doxygen 1.6.1