DocumentationOverviewBuilding ASL Documentation Library Wiki Docs Indices Browse Perforce More InfoRelease NotesWiki Site Search License Success Stories Contributors MediaDownloadPerforce Depots SupportASL SourceForge HomeMailing Lists Discussion Forums Report Bugs Suggest Features Contribute to ASL RSSShort-text newsFull-text news File releases Other Adobe ProjectsAdobe AirAdobe GIL Adobe Labs Adobe Media Gallery Adobe XMP Tamarin project (Mozilla Foundation) Other ResourcesBoostRIAForge SGI STL |
dng_file_stream.hGo to the documentation of this file.00001 /*****************************************************************************/ 00002 // Copyright 2006-2007 Adobe Systems Incorporated 00003 // All Rights Reserved. 00004 // 00005 // NOTICE: Adobe permits you to use, modify, and distribute this file in 00006 // accordance with the terms of the Adobe license agreement accompanying it. 00007 /*****************************************************************************/ 00008 00009 /* $Id: //mondo/workarea/stern/camera_raw/dng_sdk/source/dng_file_stream.h#8 $ */ 00010 /* $DateTime: 2007/11/10 22:11:29 $ */ 00011 /* $Change: 397885 $ */ 00012 /* $Author: stern $ */ 00013 00018 /*****************************************************************************/ 00019 00020 #ifndef __dng_file_stream__ 00021 #define __dng_file_stream__ 00022 00023 /*****************************************************************************/ 00024 00025 #include "dng_stream.h" 00026 00027 /*****************************************************************************/ 00028 00030 00031 class dng_file_stream: public dng_stream 00032 { 00033 00034 private: 00035 00036 FILE *fFile; 00037 00038 public: 00039 00044 00045 dng_file_stream (const char *filename, 00046 bool output = false, 00047 uint32 bufferSize = kDefaultBufferSize); 00048 00049 virtual ~dng_file_stream (); 00050 00051 protected: 00052 00053 virtual uint64 DoGetLength (); 00054 00055 virtual void DoRead (void *data, 00056 uint32 count, 00057 uint64 offset); 00058 00059 virtual void DoWrite (const void *data, 00060 uint32 count, 00061 uint64 offset); 00062 00063 private: 00064 00065 // Hidden copy constructor and assignment operator. 00066 00067 dng_file_stream (const dng_file_stream &stream); 00068 00069 dng_file_stream & operator= (const dng_file_stream &stream); 00070 00071 }; 00072 00073 /*****************************************************************************/ 00074 00075 #endif 00076 00077 /*****************************************************************************/ |