rpa::visitor Struct Reference

Base class for copying a file descirptor into another. More...

#include <futilities.h>

Inheritance diagram for rpa::visitor:

rpa::fd_visitor rpa::FILE_visitor rpa::streambuf_visitor List of all members.

Public Member Functions

virtual void visit (const char *aPtr, size_t aLen) const =0
virtual ~visitor ()

Detailed Description

Base class for copying a file descirptor into another.

A calling program must provide an object which is used as a functor, each time a segment is mapped into memory. Thus, the loop over the segments is handled by 'mmap_ctrl'.


Constructor & Destructor Documentation

virtual rpa::visitor::~visitor (  )  [inline, virtual]


Member Function Documentation

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

Because the size if a size_t, which may have 32 bits, it is possible to map 64 bits file without the need to tell to the output stream.

Implemented in rpa::streambuf_visitor, rpa::FILE_visitor, and rpa::fd_visitor.


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