Veethree D7 SDK
Loading...
Searching...
No Matches
digital_in_channel.h
Go to the documentation of this file.
1
5#ifndef DIGITAL_IN_CHANNEL_H
6#define DIGITAL_IN_CHANNEL_H
7
8#include "digital_common.h"
9#include "io_common.h"
11
12#include <memory>
13
14namespace vsdk::io {
15
16class digital_context;
17
25class digital_in_channel : public event_notification { // NOLINT(*-special-member-functions)
26public:
37 explicit digital_in_channel(std::shared_ptr<digital_context_interface> instance,
38 const digital_in_descriptor& desc);
39 ~digital_in_channel() noexcept override;
40
45 digital_in_channel(const digital_in_channel& other) = delete;
48
53 digital_in_channel& operator=(const digital_in_channel& other) = delete;
54 digital_in_channel& operator=(digital_in_channel&& other) noexcept;
56
62
69
70protected:
82 bool process_notification(const event_notification_descriptor& desc) const noexcept override;
83
84private:
85 struct impl;
86 std::unique_ptr<impl> _impl;
87};
88
89} // namespace vsdk::io
90
91#endif // DIGITAL_IN_CHANNEL_H
The digital class.
Definition digital_context.h:27
digital_in_channel(const digital_in_descriptor &desc)
The class constructor.
digital_in_channel(std::shared_ptr< digital_context_interface > instance, const digital_in_descriptor &desc)
The class constructor.
digital_in_descriptor descriptor() const
Return a descriptor with the channel configuration used when the class was instantiated.
digital_result read() const
Read the current state of the input.
bool process_notification(const event_notification_descriptor &desc) const noexcept override
process_notification
event_notification()
Class constructors.
Digital IO common types.
Common IO types and structures.
IO event notification interface.
Any entities that belong to the IO library.
io_result< bool > digital_result
Digital result type.
Definition io_common.h:77
The digital_in_descriptor class.
Definition digital_common.h:194
The event_notification_descriptor class.
Definition io_event_notification.h:55