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/dng_sdk_1_2/dng_sdk/source/dng_file_stream.h#1 $ */ 00010 /* $DateTime: 2008/03/09 14:29:54 $ */ 00011 /* $Change: 431850 $ */ 00012 /* $Author: tknoll $ */ 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 00043 00044 dng_file_stream (const char *filename, 00045 bool output = false, 00046 uint32 bufferSize = kDefaultBufferSize); 00047 00048 virtual ~dng_file_stream (); 00049 00050 protected: 00051 00052 virtual uint64 DoGetLength (); 00053 00054 virtual void DoRead (void *data, 00055 uint32 count, 00056 uint64 offset); 00057 00058 virtual void DoWrite (const void *data, 00059 uint32 count, 00060 uint64 offset); 00061 00062 private: 00063 00064 // Hidden copy constructor and assignment operator. 00065 00066 dng_file_stream (const dng_file_stream &stream); 00067 00068 dng_file_stream & operator= (const dng_file_stream &stream); 00069 00070 }; 00071 00072 /*****************************************************************************/ 00073 00074 #endif 00075 00076 /*****************************************************************************/ | |||
