CompatibleFilter Class Reference

A simple ListItem derived class to allow a list of filters to be maintained - the list holds all the filters that claim to understand a particular file (see FilterFamily). It is not derived from the Filter class itself because although the Filter class is derived from ListItem too, we want to store a list of pointers to existing filters, rather than actual instances of the Filter class. For each entry, a 'compatibility rating' is held, to allow the FilterFamily class (the client of this class) to choose the most compatible filter from the list. More...

#include <filters.h>

Inheritance diagram for CompatibleFilter:

ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 CompatibleFilter (Filter *NewFilter, INT32 NewCompatibility)
 Initialises a list item for a CompatibleFilterList.

Public Attributes

FilterpFilter
INT32 Compatibility

Detailed Description

A simple ListItem derived class to allow a list of filters to be maintained - the list holds all the filters that claim to understand a particular file (see FilterFamily). It is not derived from the Filter class itself because although the Filter class is derived from ListItem too, we want to store a list of pointers to existing filters, rather than actual instances of the Filter class. For each entry, a 'compatibility rating' is held, to allow the FilterFamily class (the client of this class) to choose the most compatible filter from the list.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/03/94
See also:
CompatibleFilterList; Filter; ListItem

Definition at line 951 of file filters.h.


Constructor & Destructor Documentation

CompatibleFilter::CompatibleFilter Filter NewFilter,
INT32  NewCompatibility
 

Initialises a list item for a CompatibleFilterList.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/03/94
Parameters:
NewFilter - the filter to add to the list. [INPUTS] NewCompatibility - the compatibility rating for this filter.
See also:
CompatibleFilter

Definition at line 4562 of file filters.cpp.

04563 {
04564     pFilter = NewFilter; 
04565     Compatibility = NewCompatibility;
04566 }


Member Data Documentation

INT32 CompatibleFilter::Compatibility
 

Definition at line 962 of file filters.h.

Filter* CompatibleFilter::pFilter
 

Definition at line 959 of file filters.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:53:03 2007 for Camelot by  doxygen 1.4.4