Class TFilterList

Unit

DSUtil

Declaration

type TFilterList = class()

Description

This class can enumerate all filters in a FilterGraph.

Methods

Overview

Public constructor Create(FilterGraph: IFilterGraph); overload;
Public destructor Destroy; override;
Public function Add(Item: IBaseFilter): Integer;
Public procedure Assign(FilterGraph: IFilterGraph);
Public function First: IBaseFilter;
Public function IndexOf(Item: IBaseFilter): Integer;
Public procedure Insert(Index: Integer; Item: IBaseFilter);
Public function Last: IBaseFilter;
Public function Remove(Item: IBaseFilter): Integer;
Public procedure Update;

Description

Public constructor Create(FilterGraph: IFilterGraph); overload;

Create a list based on a FilterGraph.

Public destructor Destroy; override;

Destructor.

Public function Add(Item: IBaseFilter): Integer;

Call Add to add an interface to the list.

Public procedure Assign(FilterGraph: IFilterGraph);

Reload the list from another FilterGraph.

Public function First: IBaseFilter;

Call First to obtain the first interface in the list.

Public function IndexOf(Item: IBaseFilter): Integer;

Call IndexOf to obtain the index of an interface.

Public procedure Insert(Index: Integer; Item: IBaseFilter);

Call Insert to insert an interface into the list. Item is the interface to insert, and Index indicates the position (zero-offset) where the interface should be added.

Public function Last: IBaseFilter;

Call Last to obtain the last interface in the list.

Public function Remove(Item: IBaseFilter): Integer;

Call Remove to remove an interface from the list. Remove returns the index of the removed interface, or –1 if the interface was not found.

Public procedure Update;

Update the list.

Properties

Overview

Public property FilterInfo[Index: Integer]: TFilterInfo;
Public property Items[Index: Integer]: IBaseFilter;

Description

Public property FilterInfo[Index: Integer]: TFilterInfo;

call FilterInfo to retrieve the Filer name and his FilterGraph.

Public property Items[Index: Integer]: IBaseFilter;

Use Items to directly access an interface in the list. Index identifies each interface by its position in the list.


Generated by DIPasDoc 0.8.0 on Sun 1 Jun 2003 23:53:07