rpa::fd_visitor Class Reference

For writing memory segments into an integer file descriptor. More...

#include <futilities.h>

Inheritance diagram for rpa::fd_visitor:

rpa::visitor List of all members.

Public Member Functions

 fd_visitor (int aFd)
virtual void visit (const char *aPtr, size_t aLen) const
 Called as a visitor for each segment of memory ready to be written.

Private Attributes

int _fd

Detailed Description

For writing memory segments into an integer file descriptor.

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


Constructor & Destructor Documentation

rpa::fd_visitor::fd_visitor ( int  aFd  )  [inline]


Member Function Documentation

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

Called as a visitor for each segment of memory ready to be written.

Therefore, the only interface between the input and the output are consecutive segments of memory.

Implements rpa::visitor.


Member Data Documentation

int rpa::fd_visitor::_fd [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