rpa::FILE_visitor Class Reference

For writing memory segments into a POSIX file. More...

#include <futilities.h>

Inheritance diagram for rpa::FILE_visitor:

rpa::visitor List of all members.

Public Member Functions

 FILE_visitor (FILE *aFile)
virtual void visit (const char *aPtr, size_t aLen) const
 This is called for each segment of file mapped into memory.

Private Attributes

FILE * _file

Detailed Description

For writing memory segments into a POSIX file.

This object is passed to a mmap_ctrl, and is called each time a segment is mapped into memory. The role of this functor is then to process the memory segment : It copies it to the output file.


Constructor & Destructor Documentation

rpa::FILE_visitor::FILE_visitor ( FILE *  aFile  )  [inline]


Member Function Documentation

void rpa::FILE_visitor::visit ( const char *  aPtr,
size_t  aLen 
) const [virtual]

This is called for each segment of file mapped into memory.

It is not possible to assume that all the file can be mapped in one go.

Implements rpa::visitor.


Member Data Documentation

FILE* rpa::FILE_visitor::_file [private]


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 10:20:38 2007 for rpa by  doxygen 1.4.7