AudRecordLib
Public Member Functions | Public Attributes
EndpointTemp Struct Reference

List of all members.

Public Member Functions

 EndpointTemp (IMMDevice *pDevice, const std::wstring &name)
 EndpointTemp (const EndpointTemp &other)
EndpointTempoperator= (const EndpointTemp &other)
void ReleaseInterfaceReference ()

Public Attributes

ComType< IMMDevice > pDevice
std::wstring name

Detailed Description

Temporary RAII holder for an endpoint and its name


Constructor & Destructor Documentation

EndpointTemp::EndpointTemp ( IMMDevice *  pDevice,
const std::wstring &  name 
) [inline]

Initializes an object with a device pointer and a name

Parameters:
pDeviceThe device's interface pointer to wrap
nameName of the device
EndpointTemp::EndpointTemp ( const EndpointTemp other) [inline]

Copies an EndpointTemp and takes an extra reference on the device pointer

Parameters:
otherThe object to copy

Member Function Documentation

EndpointTemp& EndpointTemp::operator= ( const EndpointTemp other) [inline]

Makes this object equivalent to another

The currently wrapped device pointer is released and made available for other's, which it is reinitialised with and AddRef'd.

Parameters:
otherThe object to make this one equivalent to
Returns:
Reference to this
void EndpointTemp::ReleaseInterfaceReference ( ) [inline]

Releases the pDevice's hold on the interface pointer so it's destructor won't release it


Member Data Documentation

std::wstring EndpointTemp::name

Device name

Device pointer


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Defines