function h = dftfir(varargin)
%DFTFIR  Constructor for the direct-form transposed FIR filter object.
%   F = DFTFIR(B) creates a direct-form transposed (DFTFIR) FIR filter
%   object F with coefficients specified in vector B. The direct-form
%   transposed FIR filter structure is also knows as a second 
%   direct-form structure.
%
%   F = DFTFIR(B1,B2,...) creates a DFTFIR object F of cascaded direct-form
%   transposed FIR sections. The coefficients of the i-th section are
%   given in vector Bi.
%
%   DFTFIR({{B1},{B2},...}) is equivalent to DFTFIR(B1,B2,...).
%
%   F = DFTFIR(...,C) creates a DFTFIR object F of direct-form transposed
%   sections connected as indicated in C.  C can be either 'cas'
%   (default) for cascaded connections or 'par' for parallel
%   connections.
%
%   See also DF, DF1, DF2, DF1T, DF2T, LATCMA, LATCMAX.

%   Author(s): R. Losada
%   Copyright 1988-2000 The MathWorks, Inc.
%   $Revision: 1.5 $  $Date: 2000/06/13 21:21:36 $ 

[coeffs,connection,msg] = dfiltparse('dftfir',varargin{:});

% If msg returns with a 'conversion' string, the constructor is used as a converter
if strcmpi(msg,'conversion'),
    h = coeffs;
    return
end

error(msg);

h.version = 1;

h = class(h,'dftfir',fir(coeffs,connection));
    
