HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FS_WriteFilterFactory.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: FS_WriteFilterFactory.h ( FS Library, C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __FS_WriteFilterFactory__
13 #define __FS_WriteFilterFactory__
14 
15 #include "FS_API.h"
16 #include <SYS/SYS_Types.h>
17 
20 
21 // This class provides means to create filters that are applied when the index
22 // file writes itself out to the output stream.
24 {
25 public:
26  // Standard constructor and destructor.
28  virtual ~FS_WriteFilterFactory();
29 
30  /// Get the amount of memory owned by this FS_WriteFilterFactory
31  virtual int64 getMemoryUsage(bool inclusive) const = 0;
32 
33  /// This method instantiates an write filter. The filter is used on each
34  /// section, when the index file writes them out to the output stream.
35  virtual UT_StreamBufferFilter *createBufferFilter() const = 0;
36 
37  /// Instantiates a identical copy of this class object.
38  virtual FS_WriteFilterFactory *cloneFilterFactory() const = 0;
39 
40  /// Returns the size of filtered data based on its original unfiltred size.
41  virtual int getFilteredSize( int size );
42 
43  /// Returns true if this write filter matches the specified read filter.
44  virtual bool matches(const FS_IStreamFilterFactory *f) const = 0;
45 };
46 
47 #endif
48 
GLsizeiptr size
Definition: glcorearb.h:663
long long int64
Definition: SYS_Types.h:107
GLfloat f
Definition: glcorearb.h:1925
#define FS_API
Definition: FS_API.h:10