Tanl Linguistic Pipeline

IXE::io::mappedFile Class Reference

Map a whole file. More...

#include <mappedFile.h>

Inheritance diagram for IXE::io::mappedFile:
IXE::io::MappedFileView IXE::io::MappedGzFile

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.


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.

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.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.