Represents a camera device.
More...
#include <duvc-ctl/core/types.h>
|
| std::wstring | name |
| | Human-readable device name.
|
| |
| std::wstring | path |
| | Unique device path/identifier.
|
| |
Represents a camera device.
Definition at line 131 of file types.h.
◆ Device() [1/4]
◆ Device() [2/4]
| duvc::Device::Device |
( |
std::wstring | n, |
|
|
std::wstring | p ) |
|
inline |
Construct device with name and path.
- Parameters
-
Definition at line 143 of file types.h.
◆ Device() [3/4]
Copy constructor - ensures deep copy of string data.
- Parameters
-
Explicitly defined to ensure proper deep copying when pybind11 passes Device objects between Python and C++.
Definition at line 153 of file types.h.
◆ Device() [4/4]
| duvc::Device::Device |
( |
Device && | | ) |
|
|
defaultnoexcept |
Move constructor - transfers ownership of string data.
- Parameters
-
◆ get_id()
| const std::wstring & duvc::Device::get_id |
( |
| ) |
const |
|
inline |
Get stable identifier for this device.
- Returns
- Path if available, otherwise name
Definition at line 192 of file types.h.
References name, and path.
◆ is_valid()
| bool duvc::Device::is_valid |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
Copy assignment operator.
- Parameters
-
- Returns
- Reference to this device
Definition at line 161 of file types.h.
References name, and path.
◆ operator=() [2/2]
Move assignment operator.
- Parameters
-
- Returns
- Reference to this device
◆ name
| std::wstring duvc::Device::name |
◆ path
| std::wstring duvc::Device::path |
The documentation for this struct was generated from the following files: