Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
vidl_v4l2_devices Class Reference

A class which stores all devices in an object. More...

#include <vidl_v4l2_devices.h>

List of all members.

Public Member Functions

unsigned int size () const
 Return number of detected devices in the system.
vidl_v4l2_deviceoperator() (unsigned int i)
 Return device i (0..size()-1).

Static Public Member Functions

static vidl_v4l2_devicesall ()
 Instance.

Private Member Functions

 vidl_v4l2_devices ()
void load_devices (const char *name)

Private Attributes

vcl_vector< vidl_v4l2_device_sptrvecdev

Detailed Description

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.

See also:
vidl_v4l2_device

Definition at line 28 of file vidl_v4l2_devices.h.


Constructor & Destructor Documentation

vidl_v4l2_devices::vidl_v4l2_devices ( ) [private]

Definition at line 97 of file vidl_v4l2_devices.cxx.


Member Function Documentation

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.


Member Data Documentation

Definition at line 30 of file vidl_v4l2_devices.h.


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