FilterEntry 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 <filtrmgr.h>

Inheritance diagram for FilterEntry:

ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 FilterEntry (Filter *const pFilter, const UINT32 ID)
 Initialises a list item for a Filter.

Protected Attributes

Filterm_pFilter
UINT32 m_FilterID

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:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com> (from Tim)
Date:
28/03/94
See also:
CompatibleFilterList; Filter; ListItem

Definition at line 231 of file filtrmgr.h.


Constructor & Destructor Documentation

FilterEntry::FilterEntry Filter *const   pFilter,
const UINT32  ID
 

Initialises a list item for a Filter.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com> (from Tim)
Date:
28/03/94
Parameters:
pFilter,: the filter contained within this FilterItem [INPUTS] ID - a unique ID for the given filter

Definition at line 655 of file filtrmgr.cpp.

00656 {
00657     ERROR3IF(pFilter == NULL || !ID, "FilterListItem - pFilter NULL");
00658 
00659     m_pFilter   = pFilter;
00660     m_FilterID  = ID;
00661 }


Member Data Documentation

UINT32 FilterEntry::m_FilterID [protected]
 

Definition at line 241 of file filtrmgr.h.

Filter* FilterEntry::m_pFilter [protected]
 

Definition at line 240 of file filtrmgr.h.


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