duvc-ctl 2.0.0
USB Video Class Camera Control Library
Loading...
Searching...
No Matches
duvc::WindowsPlatformInterface Class Reference

Windows DirectShow platform implementation. More...

Inheritance diagram for duvc::WindowsPlatformInterface:
Collaboration diagram for duvc::WindowsPlatformInterface:

Public Member Functions

Result< std::vector< Device > > list_devices () override
 Enumerate available devices.
 
Result< boolis_device_connected (const Device &device) override
 Check if device is connected.
 
Result< std::unique_ptr< IDeviceConnection > > create_connection (const Device &device) override
 Create device connection.
 
- Public Member Functions inherited from duvc::IPlatformInterface
virtual ~IPlatformInterface ()=default
 

Detailed Description

Windows DirectShow platform implementation.

Definition at line 21 of file factory.cpp.

Member Function Documentation

◆ create_connection()

Result< std::unique_ptr< IDeviceConnection > > duvc::WindowsPlatformInterface::create_connection ( const Device & device)
inlineoverridevirtual

Create device connection.

Parameters
deviceDevice to connect to
Returns
Result containing connection handle or error

Implements duvc::IPlatformInterface.

Definition at line 43 of file factory.cpp.

References duvc::DeviceNotFound, duvc::Ok(), and duvc::SystemError.

Here is the call graph for this function:

◆ is_device_connected()

Result< bool > duvc::WindowsPlatformInterface::is_device_connected ( const Device & device)
inlineoverridevirtual

Check if device is connected.

Parameters
deviceDevice to check
Returns
Result containing connection status or error

Implements duvc::IPlatformInterface.

Definition at line 33 of file factory.cpp.

References duvc::Ok(), and duvc::SystemError.

Here is the call graph for this function:

◆ list_devices()

Result< std::vector< Device > > duvc::WindowsPlatformInterface::list_devices ( )
inlineoverridevirtual

Enumerate available devices.

Returns
Result containing device list or error

Implements duvc::IPlatformInterface.

Definition at line 23 of file factory.cpp.

References duvc::Ok(), and duvc::SystemError.

Here is the call graph for this function:

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