CSource Class Reference

#include <source.h>

Inheritance diagram for CSource:

CBaseFilter CUnknown CBaseObject

List of all members.

Public Member Functions

 CSource (TCHAR *pName, LPUNKNOWN lpunk, CLSID clsid, HRESULT *phr)
 CSource (TCHAR *pName, LPUNKNOWN lpunk, CLSID clsid)
 ~CSource ()
int GetPinCount (void)
CBasePinGetPin (int n)
CCritSecpStateLock (void)
HRESULT AddPin (CSourceStream *)
HRESULT RemovePin (CSourceStream *)
STDMETHODIMP FindPin (LPCWSTR Id, IPin **ppPin)
int FindPinNumber (IPin *iPin)

Protected Attributes

int m_iPins
CSourceStream ** m_paStreams
CCritSec m_cStateLock


Detailed Description

Definition at line 11 of file source.h.


Constructor & Destructor Documentation

CSource::CSource ( TCHAR pName,
LPUNKNOWN  lpunk,
CLSID  clsid,
HRESULT *  phr 
)

Definition at line 15 of file source.cpp.

CSource::CSource ( TCHAR pName,
LPUNKNOWN  lpunk,
CLSID  clsid 
)

Definition at line 8 of file source.cpp.

CSource::~CSource (  ) 

Definition at line 40 of file source.cpp.

References ASSERT, m_iPins, m_paStreams, and NULL.


Member Function Documentation

int CSource::GetPinCount ( void   )  [virtual]

Reimplemented from CBaseFilter.

Definition at line 118 of file source.cpp.

References m_cStateLock, and m_iPins.

CBasePin * CSource::GetPin ( int  n  )  [virtual]

Reimplemented from CBaseFilter.

Definition at line 124 of file source.cpp.

References ASSERT, m_cStateLock, m_iPins, m_paStreams, and NULL.

Referenced by FindPin().

CCritSec* CSource::pStateLock ( void   )  [inline]

HRESULT CSource::AddPin ( CSourceStream pStream  ) 

Definition at line 51 of file source.cpp.

References E_OUTOFMEMORY, m_cStateLock, m_iPins, m_paStreams, NULL, and S_OK.

Referenced by CSourceStream::CSourceStream().

HRESULT CSource::RemovePin ( CSourceStream pStream  ) 

Definition at line 72 of file source.cpp.

References m_iPins, m_paStreams, NULL, S_FALSE, and S_OK.

Referenced by CSourceStream::~CSourceStream().

STDMETHODIMP CSource::FindPin ( LPCWSTR  Id,
IPin **  ppPin 
)

Reimplemented from CBaseFilter.

Definition at line 92 of file source.cpp.

References CheckPointer, GetPin(), NULL, ValidateReadWritePtr, and WstrToInt.

int CSource::FindPinNumber ( IPin *  iPin  ) 

Definition at line 108 of file source.cpp.

References m_iPins, and m_paStreams.

Referenced by CSourceStream::QueryId().


Member Data Documentation

int CSource::m_iPins [protected]

Definition at line 39 of file source.h.

Referenced by AddPin(), FindPinNumber(), GetPin(), GetPinCount(), RemovePin(), and ~CSource().

Definition at line 41 of file source.h.

Referenced by AddPin(), FindPinNumber(), GetPin(), RemovePin(), and ~CSource().

Definition at line 43 of file source.h.

Referenced by AddPin(), GetPin(), GetPinCount(), and pStateLock().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:20:54 2008 by  doxygen 1.5.6