DeSR Dependency Parser

IXE::io::mappedFile Class Reference

Map a whole file. More...

#include <mappedFile.h>

Inheritance diagram for IXE::io::mappedFile:

Inheritance graph
Collaboration diagram for IXE::io::mappedFile:

Collaboration graph

List of all members.

Public Member Functions

 mappedFile (char const *path, std::ios::openmode mode=std::ios::in)
bool open (char const *path, std::ios::openmode=std::ios::in)
void close ()
 Munmaps and closes a file previously opened and mmapped by mappedFile::open().
 operator bool () const
int error () const
bool write (off64_t offset, void const *data, Size length)
 Write an entry in the file at.
bool remap (Size size, std::ios::openmode=std::ios::in)
FileHandlehandle ()


Detailed Description

Map a whole file.

Definition at line 152 of file mappedFile.h.


Member Function Documentation

void IXE::io::mappedFile::close (  ) 

Munmaps and closes a file previously opened and mmapped by mappedFile::open().

See also:
close(2), mappedFile::open(3), munmap(2)

Reimplemented from IXE::io::MappedFileView.

Definition at line 258 of file mappedFile.cpp.

References IXE::io::FileHandle::close().

bool IXE::io::mappedFile::write ( off64_t  offset,
void const *  data,
Size  length 
)

Write an entry in the file at.

Parameters:
offset. File is expanded and filled with 0 from end to offset.

Definition at line 241 of file mappedFile.cpp.

References IXE::io::FileHandle::write().


The documentation for this class was generated from the following files:
 
Copyright © 2005-2007 G. Attardi. Generated on 13 Aug 2009 by doxygen 1.5.7.1.