add getDescription() method
This commit is contained in:
parent
71e152a0d6
commit
1ab596f954
2 changed files with 18 additions and 0 deletions
17
uvoscam.cpp
17
uvoscam.cpp
|
|
@ -458,3 +458,20 @@ void Camera::trigger()
|
|||
{
|
||||
arv_camera_software_trigger(aCamera_, nullptr);
|
||||
}
|
||||
|
||||
Camera::Description Camera::getDescription()
|
||||
{
|
||||
Description desc;
|
||||
if(ARV_IS_CAMERA(aCamera_))
|
||||
{
|
||||
GError* error;
|
||||
desc.vendor = arv_camera_get_vendor_name(aCamera_, &error);
|
||||
desc.serial = arv_camera_get_device_serial_number(aCamera_, &error);
|
||||
desc.id = arv_camera_get_device_id(aCamera_, &error);
|
||||
desc.model= arv_camera_get_model_name(aCamera_, &error);
|
||||
if(!error)
|
||||
return desc;
|
||||
else return Description();
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,6 +124,7 @@ public:
|
|||
Camera::BayerMode getBayerMode();
|
||||
void setTriggerMode(Camera::TriggerMode mode);
|
||||
void trigger();
|
||||
Camera::Description getDescription();
|
||||
|
||||
static void aCallback(void* instance, int type, ArvBuffer *buffer);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue