vpr::IOStatsStrategyAdapter< BASE_ONE, BASE_TWO > Class Template Reference

This is a template adapter that combines two I/O Stats strategies together into a single class. More...

#include <vpr/IO/Stats/IOStatsStrategyAdapter.h>

List of all members.

Public Member Functions

virtual void read_s (vpr::ReturnStatus &status, void *buffer, const vpr::Uint32 length, vpr::Uint32 &bytesRead, const vpr::Interval timeout=vpr::Interval::NoTimeout)
virtual void readn_s (vpr::ReturnStatus &status, void *buffer, const vpr::Uint32 length, vpr::Uint32 &bytesRead, const vpr::Interval timeout=vpr::Interval::NoTimeout)
virtual void write_s (vpr::ReturnStatus &status, const void *buffer, const vpr::Uint32 length, vpr::Uint32 &bytesWritten, const vpr::Interval timeout=vpr::Interval::NoTimeout)


Detailed Description

template<class BASE_ONE, class BASE_TWO>
class vpr::IOStatsStrategyAdapter< BASE_ONE, BASE_TWO >

This is a template adapter that combines two I/O Stats strategies together into a single class.

It multiply inherits a new class from the two classes to create a single new class. It overrides the virtual functions read_s(), readn_s(), and write_s() to create new functions that call the parent functions in the order that they were specified as template parameters. All types here must be based on the vpr::BaseIOStatsStrategy_i interface.

Parameters:
BASE_ONE The first base class.
BASE_TWO The second base class.

Definition at line 64 of file IOStatsStrategyAdapter.h.


Member Function Documentation

template<class BASE_ONE, class BASE_TWO>
virtual void vpr::IOStatsStrategyAdapter< BASE_ONE, BASE_TWO >::read_s ( vpr::ReturnStatus status,
void *  buffer,
const vpr::Uint32  length,
vpr::Uint32 bytesRead,
const vpr::Interval  timeout = vpr::Interval::NoTimeout 
) [inline, virtual]

Definition at line 67 of file IOStatsStrategyAdapter.h.

00070    {
00071       BASE_ONE::read_s(status, buffer, length, bytesRead, timeout);
00072       BASE_TWO::read_s(status, buffer, length, bytesRead, timeout);
00073    }

template<class BASE_ONE, class BASE_TWO>
virtual void vpr::IOStatsStrategyAdapter< BASE_ONE, BASE_TWO >::readn_s ( vpr::ReturnStatus status,
void *  buffer,
const vpr::Uint32  length,
vpr::Uint32 bytesRead,
const vpr::Interval  timeout = vpr::Interval::NoTimeout 
) [inline, virtual]

Definition at line 75 of file IOStatsStrategyAdapter.h.

00078    {
00079       BASE_ONE::readn_s(status, buffer, length, bytesRead, timeout);
00080       BASE_TWO::readn_s(status, buffer, length, bytesRead, timeout);
00081    }

template<class BASE_ONE, class BASE_TWO>
virtual void vpr::IOStatsStrategyAdapter< BASE_ONE, BASE_TWO >::write_s ( vpr::ReturnStatus status,
const void *  buffer,
const vpr::Uint32  length,
vpr::Uint32 bytesWritten,
const vpr::Interval  timeout = vpr::Interval::NoTimeout 
) [inline, virtual]

Definition at line 83 of file IOStatsStrategyAdapter.h.

00086    {
00087       BASE_ONE::write_s(status, buffer, length, bytesWritten, timeout);
00088       BASE_TWO::write_s(status, buffer, length, bytesWritten, timeout);
00089    }


The documentation for this class was generated from the following file:
Generated on Thu Jan 4 10:55:21 2007 for VR Juggler Portable Runtime by  doxygen 1.5.1