vpr::BaseIOStatsStrategy Class Reference

Base interface for IO Stat collection. More...

#include <BaseIOStatsStrategy.h>

Inheritance diagram for vpr::BaseIOStatsStrategy:

Inheritance graph
[legend]
Collaboration diagram for vpr::BaseIOStatsStrategy:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { IS_NULL = 0 }

Public Member Functions

 BaseIOStatsStrategy ()
virtual ~BaseIOStatsStrategy ()
void setRealObject (vpr::BlockIO *real)
virtual void read_s (vpr::ReturnStatus &status, void *buffer, const vpr::Uint32 length, vpr::Uint32 &bytes_read, const vpr::Interval timeout=vpr::Interval::NoTimeout)
virtual void readn_s (vpr::ReturnStatus &status, void *buffer, const vpr::Uint32 length, vpr::Uint32 &bytes_read, const vpr::Interval timeout=vpr::Interval::NoTimeout)
virtual void write_s (vpr::ReturnStatus &status, const void *buffer, const vpr::Uint32 length, vpr::Uint32 &bytes_written, const vpr::Interval timeout=vpr::Interval::NoTimeout)

Protected Attributes

vpr::BlockIOmRealObject

Detailed Description

Base interface for IO Stat collection.

This is the interface that the BlockIO class expects to deal with. We add on other stats features using mixins that are added by a template composition adapter.

Definition at line 61 of file BaseIOStatsStrategy.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
IS_NULL 

Definition at line 74 of file BaseIOStatsStrategy.h.

00074 { IS_NULL = 0 };


Constructor & Destructor Documentation

vpr::BaseIOStatsStrategy::BaseIOStatsStrategy (  )  [inline]

Definition at line 64 of file BaseIOStatsStrategy.h.

00065    {
00066        mRealObject = NULL;
00067    }

virtual vpr::BaseIOStatsStrategy::~BaseIOStatsStrategy (  )  [inline, virtual]

Definition at line 69 of file BaseIOStatsStrategy.h.

00070    {;}


Member Function Documentation

void vpr::BaseIOStatsStrategy::setRealObject ( vpr::BlockIO real  ) 

Definition at line 46 of file BaseIOStatsStrategy.cpp.

References mRealObject.

Referenced by vpr::BlockIO::setIOStatStrategy().

00047 { mRealObject = real; }

void vpr::BaseIOStatsStrategy::read_s ( vpr::ReturnStatus status,
void *  buffer,
const vpr::Uint32  length,
vpr::Uint32 bytes_read,
const vpr::Interval  timeout = vpr::Interval::NoTimeout 
) [virtual]

Definition at line 49 of file BaseIOStatsStrategy.cpp.

References mRealObject, and vpr::BlockIO::read_i().

Referenced by vpr::BlockIO::read_s().

00053 {
00054    status = mRealObject->read_i(buffer, length, bytes_read, timeout);
00055 }

void vpr::BaseIOStatsStrategy::readn_s ( vpr::ReturnStatus status,
void *  buffer,
const vpr::Uint32  length,
vpr::Uint32 bytes_read,
const vpr::Interval  timeout = vpr::Interval::NoTimeout 
) [virtual]

Definition at line 57 of file BaseIOStatsStrategy.cpp.

References mRealObject, and vpr::BlockIO::readn_i().

Referenced by vpr::BlockIO::readn_s().

00061 {
00062    status = mRealObject->readn_i(buffer, length, bytes_read, timeout);
00063 }

void vpr::BaseIOStatsStrategy::write_s ( vpr::ReturnStatus status,
const void *  buffer,
const vpr::Uint32  length,
vpr::Uint32 bytes_written,
const vpr::Interval  timeout = vpr::Interval::NoTimeout 
) [virtual]

Definition at line 65 of file BaseIOStatsStrategy.cpp.

References mRealObject, and vpr::BlockIO::write_i().

Referenced by vpr::BlockIO::write_s().

00069 {
00070    status = mRealObject->write_i(buffer, length, bytes_written, timeout);
00071 }


Member Data Documentation

vpr::BlockIO* vpr::BaseIOStatsStrategy::mRealObject [protected]

Definition at line 93 of file BaseIOStatsStrategy.h.

Referenced by read_s(), readn_s(), setRealObject(), and write_s().


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