#include <futilities.h>
Inheritance diagram for rpa::FILE_visitor:
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 |
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.
rpa::FILE_visitor::FILE_visitor | ( | FILE * | aFile | ) | [inline] |
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.
FILE* rpa::FILE_visitor::_file [private] |