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_WriteFilterFactory.h ( FS Library, C++) 00014 * 00015 * COMMENTS: 00016 * 00017 */ 00018 00019 #ifndef __FS_WriteFilterFactory__ 00020 #define __FS_WriteFilterFactory__ 00021 00022 #include "FS_API.h" 00023 00024 class UT_StreamBufferFilter; 00025 class FS_IStreamFilterFactory; 00026 00027 // This class provides means to create filters that are applied when the index 00028 // file writes itself out to the output stream. 00029 class FS_API FS_WriteFilterFactory 00030 { 00031 public: 00032 // Standard constructor and destructor. 00033 FS_WriteFilterFactory(); 00034 virtual ~FS_WriteFilterFactory(); 00035 00036 /// This method instantiates an write filter. The filter is used on each 00037 /// section, when the index file writes them out to the output stream. 00038 virtual UT_StreamBufferFilter *createBufferFilter() const = 0; 00039 00040 /// Instantiates a identical copy of this class object. 00041 virtual FS_WriteFilterFactory *cloneFilterFactory() const = 0; 00042 00043 /// Returns the size of filtered data based on its original unfiltred size. 00044 virtual int getFilteredSize( int size ); 00045 00046 /// Returns true if this write filter matches the specified read filter. 00047 virtual bool matches(const FS_IStreamFilterFactory *f) const = 0; 00048 }; 00049 00050 #endif 00051
1.5.9