CVB++ 15.0
detail_software_trigger.hpp
1#pragma once
2
3#include "../../global.hpp"
4
5#include "../../_decl/decl_device.hpp"
6
7#include "../_decl/decl_software_trigger.hpp"
8
9namespace Cvb
10{
11
12 CVB_BEGIN_INLINE_NS
13
14 namespace Driver
15 {
16
17 inline void SoftwareTrigger::SendTrigger(int id)
18 {
19 auto result = CExports::STTrigger(Parent()->Handle(), static_cast<CExports::cvbval_t>(id));
20 if (result < 0)
21 std::rethrow_exception(CvbException::FromCvbResult(result, "failed to send software trigger"));
22 }
23
24 } // namespace Driver
25
26 CVB_END_INLINE_NS
27
28} // namespace Cvb
void SendTrigger()
Send default trigger.
Definition decl_software_trigger.hpp:37
DevicePtr Parent() const noexcept
Gets the parent device of this interface.
Definition decl_software_trigger.hpp:28
Namespace for driver or device related operations.
Definition decl_composite.hpp:28
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
T rethrow_exception(T... args)