central instance managing all connected (unicap-)video devices More...
#include <GrabbingDeviceManager.h>
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 GrabbingDeviceManager * | getGrabbingDeviceManager () |
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 GrabbingDeviceManager * | mTheManager = 0 |
central instance managing all connected (unicap-)video devices
DeviceManager provides access to all devices supported by unicap, implemented as singleton
Definition at line 31 of file GrabbingDeviceManager.h.
GrabbingDeviceManager::GrabbingDeviceManager | ( | ) | [private] |
Definition at line 137 of file GrabbingDeviceManager.cpp.
GrabbingDeviceManager::GrabbingDeviceManager | ( | const GrabbingDeviceManager & | ) | [private] |
Definition at line 147 of file GrabbingDeviceManager.cpp.
GrabbingDeviceManager::~GrabbingDeviceManager | ( | ) | [private] |
Definition at line 157 of file GrabbingDeviceManager.cpp.
bool GrabbingDeviceManager::connectGrabbingDevice | ( | GrabbingDevice ** | _device, |
const uint | _id | ||
) |
connect _device with the GrabbingDevice specified by _id
_device | _pointer to the GrabbingDevice |
_id | Id of the device, as shown by printDeviceList |
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
_device | _pointer to the GrabbingDevice |
_description | descriptor of the device, full name not required |
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
_id | Id of the devie, as shown py printDeviceList() |
Definition at line 76 of file GrabbingDeviceManager.cpp.
std::string puma2::GrabbingDeviceManager::getDeviceInfo | ( | const std::string & | _description | ) |
returns some information about the selected device
_description | description of the device |
string GrabbingDeviceManager::getDeviceList | ( | ) |
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.
uint GrabbingDeviceManager::getNumDevices | ( | ) |
Definition at line 68 of file GrabbingDeviceManager.cpp.
bool GrabbingDeviceManager::scan | ( | ) |
scan for new devices, update database
Definition at line 170 of file GrabbingDeviceManager.cpp.
Definition at line 104 of file GrabbingDeviceManager.h.
PumaLogger* puma2::GrabbingDeviceManager::mLogger [private] |
Definition at line 106 of file GrabbingDeviceManager.h.
GrabbingDeviceManager * GrabbingDeviceManager::mTheManager = 0 [static, private] |
Definition at line 103 of file GrabbingDeviceManager.h.