/////////////////////////////////////////////////////////////////////////////
// $Id: SingleCrossbar.h 4545 2009-03-23 12:57:21Z adcockj $
/////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2001 Torbjörn Jansson.  All rights reserved.
/////////////////////////////////////////////////////////////////////////////
//
//  This file is subject to the terms of the GNU General Public License as
//  published by the Free Software Foundation.  A copy of this license is
//  included with this software distribution in the file COPYING.  If you
//  do not have a copy, you may obtain a copy by writing to the Free
//  Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
//
//  This software is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details
/////////////////////////////////////////////////////////////////////////////

/**
 * @file SingleCrossbar.h interface for the CDShowSingleCrossbar class.
 */

#if !defined(AFX_SINGLECROSSBAR_H__28485589_E809_4ED1_8F98_52F0740B6A11__INCLUDED_)
#define AFX_SINGLECROSSBAR_H__28485589_E809_4ED1_8F98_52F0740B6A11__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "BaseCrossbar.h"

/**
 * Class for managing one crossbar filter.
 */
class CDShowSingleCrossbar :public CDShowBaseCrossbar
{
public:
    CDShowSingleCrossbar(CComPtr<IAMCrossbar> &pCrossbar,IGraphBuilder *pGraph);
    virtual ~CDShowSingleCrossbar();

    void GetPinCounts(long &cIn,long &cOut);
    long GetInputIndex(long OutIndex);
    BOOL IsInputSelected(long index);

    PhysicalConnectorType GetInputType(long Index);
    void SetInputIndex(long Index,BOOL bSetRelated);

private:
    /// Crossbar filter
    CComPtr<IAMCrossbar> m_crossbar;
};

#endif // !defined(AFX_SINGLECROSSBAR_H__28485589_E809_4ED1_8F98_52F0740B6A11__INCLUDED_)
