AudRecordLib
|
Public Member Functions | |
EndpointTemp (IMMDevice *pDevice, const std::wstring &name) | |
EndpointTemp (const EndpointTemp &other) | |
EndpointTemp & | operator= (const EndpointTemp &other) |
void | ReleaseInterfaceReference () |
Public Attributes | |
ComType< IMMDevice > | pDevice |
std::wstring | name |
Temporary RAII holder for an endpoint and its name
EndpointTemp::EndpointTemp | ( | IMMDevice * | pDevice, |
const std::wstring & | name | ||
) | [inline] |
Initializes an object with a device pointer and a name
pDevice | The device's interface pointer to wrap |
name | Name of the device |
EndpointTemp::EndpointTemp | ( | const EndpointTemp & | other | ) | [inline] |
Copies an EndpointTemp and takes an extra reference on the device pointer
other | The object to copy |
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.
other | The object to make this one equivalent to |
void EndpointTemp::ReleaseInterfaceReference | ( | ) | [inline] |
Releases the pDevice's hold on the interface pointer so it's destructor won't release it
std::wstring EndpointTemp::name |
Device name
ComType<IMMDevice> EndpointTemp::pDevice |
Device pointer