avcap::V4L2_ControlBase Class Reference

#include <avcap/linux/V4L2_ControlBase.h>


Detailed Description

Basic implementation of a device control for a Video4Linux2 device.

Implements common methods of V4L2-controls.


Public Member Functions

 V4L2_ControlBase (V4L2_DeviceDescriptor *dd, struct v4l2_queryctrl *query)
virtual ~V4L2_ControlBase ()
int getId () const
int getDefaultValue () const
const std::string & getName () const
virtual int setValue (int val)
virtual int getValue () const
virtual int reset ()
__u32 getFlags () const
 Return the flags of the v4l2_queryctrl structure associated with the control.

Protected Member Functions

int update ()

Protected Attributes

V4L2_DeviceDescriptormDeviceDescriptor
int mId
int mValue


Constructor & Destructor Documentation

avcap::V4L2_ControlBase::V4L2_ControlBase ( V4L2_DeviceDescriptor dd,
struct v4l2_queryctrl *  query 
)

virtual avcap::V4L2_ControlBase::~V4L2_ControlBase (  )  [virtual]


Member Function Documentation

int avcap::V4L2_ControlBase::getId (  )  const [inline]

int avcap::V4L2_ControlBase::getDefaultValue (  )  const [inline]

const std::string& avcap::V4L2_ControlBase::getName (  )  const [inline]

virtual int avcap::V4L2_ControlBase::setValue ( int  val  )  [virtual]

virtual int avcap::V4L2_ControlBase::getValue (  )  const [virtual]

virtual int avcap::V4L2_ControlBase::reset (  )  [virtual]

__u32 avcap::V4L2_ControlBase::getFlags (  )  const [inline]

Return the flags of the v4l2_queryctrl structure associated with the control.

int avcap::V4L2_ControlBase::update (  )  [protected]


Field Documentation

V4L2_DeviceDescriptor* avcap::V4L2_ControlBase::mDeviceDescriptor [protected]

int avcap::V4L2_ControlBase::mId [protected]

int avcap::V4L2_ControlBase::mValue [protected]


The documentation for this class was generated from the following file:
Generated on Mon Nov 30 11:10:32 2009 for avcap-0.1 by  doxygen 1.5.1