00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Side Effects Software Inc 00008 * 477 Richmond Street West 00009 * Toronto, Ontario 00010 * Canada M5V 3E7 00011 * 416-504-9876 00012 * 00013 * NAME: FS_IStreamFilterFactory.h ( FS Library, C++) 00014 * 00015 * COMMENTS: 00016 * 00017 */ 00018 00019 #ifndef __FS_IStreamFilterFactory__ 00020 #define __FS_IStreamFilterFactory__ 00021 00022 #include "FS_API.h" 00023 00024 class UT_IStream; 00025 00026 // This class provides means to create filters for the input streams that 00027 // underline the reader stream. It is used by the FS_ReaderStream to instantiate 00028 // a filter whenever it needs to create its input stream. 00029 class FS_API FS_IStreamFilterFactory 00030 { 00031 public: 00032 // Standard constructor and destructor. 00033 FS_IStreamFilterFactory(); 00034 virtual ~FS_IStreamFilterFactory(); 00035 00036 /// This method instantiates an input stream filter (which is itself an 00037 /// input stream). The filter will read raw data from the 'is', then 00038 /// process it and present the transformed data to the user of the 00039 /// filter, which will see it just as a regular input stream. 00040 virtual UT_IStream *createIStreamFilter( 00041 UT_IStream * is) const = 0; 00042 00043 /// Instantiates a identical copy of this class object. 00044 virtual FS_IStreamFilterFactory *cloneFilterFactory() const = 0; 00045 00046 /// Obtains the size of the data encoded in the is, ie. the size of the data 00047 /// after the raw input stream bytes have been filtered. 00048 virtual int getDataSize( 00049 UT_IStream * is, 00050 int stream_size) const = 0; 00051 }; 00052 00053 #endif 00054
1.5.9