A class which stores all devices in an object. More...
#include <vidl_v4l2_devices.h>
Public Member Functions | |
unsigned int | size () const |
Return number of detected devices in the system. | |
vidl_v4l2_device & | operator() (unsigned int i) |
Return device i (0..size()-1). | |
Static Public Member Functions | |
static vidl_v4l2_devices & | all () |
Instance. | |
Private Member Functions | |
vidl_v4l2_devices () | |
void | load_devices (const char *name) |
Private Attributes | |
vcl_vector< vidl_v4l2_device_sptr > | vecdev |
A class which stores all devices in an object.
This object is a singleton initialized automatically by detecting all devices in the system, The devices are detected iterating over all files in the device directory.
This singleton can be accessed as vidl_v4l2_devices::all() Note that you can work with devices without using this singleton, because you can create a vidl_v4l2_device directly from the file name. However, it is better to look for the device in this singleton using directly de card name.
Definition at line 28 of file vidl_v4l2_devices.h.
vidl_v4l2_devices::vidl_v4l2_devices | ( | ) | [private] |
Definition at line 97 of file vidl_v4l2_devices.cxx.
vidl_v4l2_devices & vidl_v4l2_devices::all | ( | ) | [static] |
Instance.
Definition at line 59 of file vidl_v4l2_devices.cxx.
void vidl_v4l2_devices::load_devices | ( | const char * | name | ) | [private] |
Definition at line 66 of file vidl_v4l2_devices.cxx.
vidl_v4l2_device& vidl_v4l2_devices::operator() | ( | unsigned int | i | ) | [inline] |
Return device i (0..size()-1).
Definition at line 42 of file vidl_v4l2_devices.h.
unsigned int vidl_v4l2_devices::size | ( | ) | const [inline] |
Return number of detected devices in the system.
Definition at line 38 of file vidl_v4l2_devices.h.
vcl_vector<vidl_v4l2_device_sptr> vidl_v4l2_devices::vecdev [private] |
Definition at line 30 of file vidl_v4l2_devices.h.