Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
puma2::GrabbingDeviceManager Class Reference

central instance managing all connected (unicap-)video devices More...

#include <GrabbingDeviceManager.h>

List of all members.

Public Member Functions

bool connectGrabbingDevice (GrabbingDevice **_device, const uint _id)
bool connectGrabbingDevice (GrabbingDevice **_device, const std::string &_description)
std::string getDeviceInfo (const uint _id)
std::string getDeviceInfo (const std::string &_description)
std::string getDeviceList ()
uint getNumDevices ()
bool scan ()

Static Public Member Functions

static GrabbingDeviceManagergetGrabbingDeviceManager ()

Private Member Functions

bool connectGrabbingDevice (GrabbingDevice **_device, unicap_device_t *_udevice)
bool findDeviceByDesc (unicap_device_t **_device, const std::string &_description)
bool findDeviceById (unicap_device_t **_device, const uint _id)
 GrabbingDeviceManager ()
 GrabbingDeviceManager (const GrabbingDeviceManager &)
 ~GrabbingDeviceManager ()

Private Attributes

device_ptr_vec mDevices
PumaLogger * mLogger

Static Private Attributes

static GrabbingDeviceManagermTheManager = 0

Detailed Description

central instance managing all connected (unicap-)video devices

DeviceManager provides access to all devices supported by unicap, implemented as singleton

Author:
Benjamin Knopp <bknopp@uni-koblenz.de>

Definition at line 31 of file GrabbingDeviceManager.h.


Constructor & Destructor Documentation

Definition at line 137 of file GrabbingDeviceManager.cpp.

Definition at line 147 of file GrabbingDeviceManager.cpp.

Definition at line 157 of file GrabbingDeviceManager.cpp.


Member Function Documentation

bool GrabbingDeviceManager::connectGrabbingDevice ( GrabbingDevice **  _device,
const uint  _id 
)

connect _device with the GrabbingDevice specified by _id

Parameters:
_device_pointer to the GrabbingDevice
_idId of the device, as shown by printDeviceList
Returns:
true if successfully connected, false otherwise

Definition at line 32 of file GrabbingDeviceManager.cpp.

bool puma2::GrabbingDeviceManager::connectGrabbingDevice ( GrabbingDevice **  _device,
const std::string &  _description 
)

connect _device with the GrabbingDevice specified by _id

Parameters:
_device_pointer to the GrabbingDevice
_descriptiondescriptor of the device, full name not required
Returns:
true if successfully connected, false otherwise
bool GrabbingDeviceManager::connectGrabbingDevice ( GrabbingDevice **  _device,
unicap_device_t *  _udevice 
) [private]

Definition at line 265 of file GrabbingDeviceManager.cpp.

bool GrabbingDeviceManager::findDeviceByDesc ( unicap_device_t **  _device,
const std::string &  _description 
) [private]

Definition at line 221 of file GrabbingDeviceManager.cpp.

bool GrabbingDeviceManager::findDeviceById ( unicap_device_t **  _device,
const uint  _id 
) [private]

Definition at line 207 of file GrabbingDeviceManager.cpp.

string GrabbingDeviceManager::getDeviceInfo ( const uint  _id)

returns some information about the selected device

Parameters:
_idId of the devie, as shown py printDeviceList()
Returns:
string containing device description

Definition at line 76 of file GrabbingDeviceManager.cpp.

std::string puma2::GrabbingDeviceManager::getDeviceInfo ( const std::string &  _description)

returns some information about the selected device

Parameters:
_descriptiondescription of the device
Returns:
string containing device description

get a list with all devices and additional information

Definition at line 110 of file GrabbingDeviceManager.cpp.

returns a pointer to the only valid instance of this Class

Definition at line 17 of file GrabbingDeviceManager.cpp.

Returns:
returns the number of currently connected devices

Definition at line 68 of file GrabbingDeviceManager.cpp.

scan for new devices, update database

Definition at line 170 of file GrabbingDeviceManager.cpp.


Member Data Documentation

Definition at line 104 of file GrabbingDeviceManager.h.

Definition at line 106 of file GrabbingDeviceManager.h.

Definition at line 103 of file GrabbingDeviceManager.h.


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


obj_rec_gui
Author(s): AGAS/agas@uni-koblenz.de
autogenerated on Mon Oct 6 2014 02:53:43