CVB++ 15.0
decl_software_trigger.hpp
1#pragma once
2
3#include "../../global.hpp"
4
5namespace Cvb
6{
7
8 CVB_BEGIN_INLINE_NS
9
10 namespace Driver
11 {
12
14
15 class SoftwareTrigger
16 {
17 public:
18 explicit SoftwareTrigger(const DevicePtr &parent) noexcept
19 : parent_(parent)
20 {
21 }
22
24
28 DevicePtr Parent() const noexcept
29 {
30 return parent_;
31 }
32
34
38 {
39 SendTrigger(0);
40 }
41
43
47 void SendTrigger(int id);
48
49 private:
50 DevicePtr parent_;
51 };
52
53 } // namespace Driver
54
55 using Driver::SoftwareTrigger;
56
57 CVB_END_INLINE_NS
58
59} // 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
std::shared_ptr< Device > DevicePtr
Convenience shared pointer for Device.
Definition global.hpp:98