Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

BaseIOStatsStrategy.cpp

Go to the documentation of this file.
00001 /****************** <VPR heading BEGIN do not edit this line> *****************
00002  *
00003  * VR Juggler Portable Runtime
00004  *
00005  * Original Authors:
00006  *   Allen Bierbaum, Patrick Hartling, Kevin Meinert, Carolina Cruz-Neira
00007  *
00008  * -----------------------------------------------------------------
00009  * File:          $RCSfile: BaseIOStatsStrategy.cpp,v $
00010  * Date modified: $Date: 2003/02/21 22:59:26 $
00011  * Version:       $Revision: 1.10 $
00012  * -----------------------------------------------------------------
00013  *
00014  ****************** <VPR heading END do not edit this line> ******************/
00015 
00016 /*************** <auto-copyright.pl BEGIN do not edit this line> **************
00017  *
00018  * VR Juggler is (C) Copyright 1998-2003 by Iowa State University
00019  *
00020  * Original Authors:
00021  *   Allen Bierbaum, Christopher Just,
00022  *   Patrick Hartling, Kevin Meinert,
00023  *   Carolina Cruz-Neira, Albert Baker
00024  *
00025  * This library is free software; you can redistribute it and/or
00026  * modify it under the terms of the GNU Library General Public
00027  * License as published by the Free Software Foundation; either
00028  * version 2 of the License, or (at your option) any later version.
00029  *
00030  * This library is distributed in the hope that it will be useful,
00031  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00032  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00033  * Library General Public License for more details.
00034  *
00035  * You should have received a copy of the GNU Library General Public
00036  * License along with this library; if not, write to the
00037  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00038  * Boston, MA 02111-1307, USA.
00039  *
00040  *************** <auto-copyright.pl END do not edit this line> ***************/
00041 
00042 #include <vpr/IO/Stats/BaseIOStatsStrategy.h>
00043 #include <vpr/IO/BlockIO.h>
00044 
00045 
00046 void vpr::BaseIOStatsStrategy::setRealObject(vpr::BlockIO* real)
00047 { mRealObject = real; }
00048 
00049 void vpr::BaseIOStatsStrategy::read_s(ReturnStatus& status,
00050                                       void* buffer, const vpr::Uint32 length,
00051                                       vpr::Uint32& bytes_read,
00052                                       const vpr::Interval timeout)
00053 {
00054    status = mRealObject->read_i(buffer, length, bytes_read, timeout);
00055 }
00056 
00057 void vpr::BaseIOStatsStrategy::readn_s(ReturnStatus& status,
00058                                        void* buffer, const vpr::Uint32 length,
00059                                        vpr::Uint32& bytes_read,
00060                                        const vpr::Interval timeout)
00061 {
00062    status = mRealObject->readn_i(buffer, length, bytes_read, timeout);
00063 }
00064 
00065 void vpr::BaseIOStatsStrategy::write_s(ReturnStatus& status,
00066                                        const void* buffer, const vpr::Uint32 length,
00067                                        vpr::Uint32& bytes_written,
00068                                        const vpr::Interval timeout)
00069 {
00070    status = mRealObject->write_i(buffer, length, bytes_written, timeout);
00071 }

Generated on Sun May 2 14:43:00 2004 for VR Juggler Portable Runtime by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002