Fawkes API
Fawkes Development Version
|
#include <>>
Static Public Member Functions | |
static Camera * | instance (const char *as) |
Get camera instance. More... | |
static Camera * | instance (const CameraArgumentParser *cap) |
Get camera instance with parameters from given camera argument parser. More... | |
template<class C > | |
static C * | instance (const char *as) |
Get typed instance of camera. More... | |
Camera factory.
This camera factory provides access to all cameras in a unified way. You just supply a camera argument string and depending on the camera ID and compile-time support of camera types an instance of the desired camera is returned or otherwise an exception is thrown. See instance() for a list of supported camera types.
|
static |
Get camera instance.
Get an instance of a camera of the given type. The argument string determines the type of camera to open. Supported camera types:
as | camera argument string |
UnknownCameraTypeException | thrown, if the desired camera could not be instantiated. This could be either to a misspelled camera ID, generally missing support or unset definition due to configuration in fvconf.mk or missing libraries and camera support compile-time autodetection. |
Definition at line 239 of file factory.cpp.
Referenced by instance().
|
static |
Get camera instance with parameters from given camera argument parser.
This is a convenience method and works like instace(const char *as).
cap | camera argument parser |
UnknownCameraTypeException | thrown if camera type is not known or was not available at build time. |
Definition at line 92 of file factory.cpp.
References firevision::CameraArgumentParser::cam_type().
|
static |
Get typed instance of camera.
Creates a new instance and converts it to the requested type. If the type does not match the requested camera an exception is thrown.
as | camera argument string |
TypeMismatchException | thrown, if requested camera does not match requested type. |
Definition at line 63 of file factory.h.
References instance().