vidl_v4l2_devices Class Reference

#include <vidl_v4l2_devices.h>

List of all members.


Detailed Description

A class which stores all devices in a 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.


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.

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

Constructor & Destructor Documentation

vidl_v4l2_devices::vidl_v4l2_devices (  )  [private]

Definition at line 97 of file vidl_v4l2_devices.cxx.


Member Function Documentation

void vidl_v4l2_devices::load_devices ( const char *  name  )  [private]

Definition at line 66 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.

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.

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.


Member Data Documentation

vcl_vector<vidl_v4l2_device_sptr> vidl_v4l2_devices::vecdev [private]

Definition at line 30 of file vidl_v4l2_devices.h.


The documentation for this class was generated from the following files:
Generated on Mon Mar 8 05:10:37 2010 for core/vidl by  doxygen 1.5.1