Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

InputStream.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 2003-2005 by Autodesk, Inc.
00003 //
00004 //  By using this code, you are agreeing to the terms and conditions of
00005 //  the License Agreement included in the documentation for this code.
00006 //
00007 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED,
00008 //  AS TO THE CORRECTNESS OF THIS CODE OR ANY DERIVATIVE
00009 //  WORKS WHICH INCORPORATE IT.
00010 //
00011 //  AUTODESK PROVIDES THE CODE ON AN "AS-IS" BASIS
00012 //  AND EXPLICITLY DISCLAIMS ANY LIABILITY, INCLUDING
00013 //  CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00014 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00015 //
00016 //  Use, duplication, or disclosure by the U.S. Government is subject to
00017 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00018 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00019 //  Data and Computer Software), as applicable.
00020 //
00021 
00022 #ifndef _DWFCORE_INPUT_STREAM_H
00023 #define _DWFCORE_INPUT_STREAM_H
00024 
00025 
00030 
00031 #include "dwfcore/Core.h"
00032 #include "dwfcore/Exception.h"
00033 
00034 
00035 namespace DWFCore
00036 {
00037 
00059 class DWFInputStream
00060 {
00061 
00062 public:
00063 
00069     _DWFCORE_API
00070     virtual ~DWFInputStream()
00071         throw()
00072     {;}
00073 
00086     _DWFCORE_API 
00087     virtual size_t available() const
00088         throw( DWFException ) = 0;
00089 
00103     _DWFCORE_API 
00104     virtual size_t read( void*  pBuffer,
00105                          size_t nBytesToRead )
00106         throw( DWFException ) = 0;
00107 
00120     _DWFCORE_API 
00121     virtual off_t seek( int    eOrigin,
00122                         off_t  nOffset )
00123         throw( DWFException ) = 0;
00124 
00125 protected:
00126 
00132     _DWFCORE_API
00133     DWFInputStream()
00134         throw()
00135     {;}
00136 
00137 private:
00138 
00139     //
00140     // Unimplemented methods
00141     //
00142 
00143     DWFInputStream( const DWFInputStream& );
00144     DWFInputStream& operator=( const DWFInputStream& );
00145 };
00146 
00147 }
00148 
00149 
00150 #endif

Generated on Tue May 17 12:05:10 2005 for Autodesk DWF Core Library by  doxygen 1.4.1