9#ifndef LIBEVDEVXX_READ_FLAG_HPP
10#define LIBEVDEVXX_READ_FLAG_HPP
16#include <libevdev/libevdev.h>
26 blocking = LIBEVDEV_READ_FLAG_BLOCKING
38 return ReadFlag{
static_cast<unsigned>(a) |
static_cast<unsigned>(b) };
49 return ReadFlag{
static_cast<unsigned>(a) &
static_cast<unsigned>(b) };
60 return ReadFlag{
static_cast<unsigned>(a) ^
static_cast<unsigned>(b) };
70 return ReadFlag{ ~static_cast<unsigned>(a) };
The namespace of libevdevxx.
Definition: AbsInfo.hpp:20
ReadFlag
Definition: ReadFlag.hpp:22
@ blocking
Definition: ReadFlag.hpp:26
@ resync
Definition: ReadFlag.hpp:24
@ force_sync
Definition: ReadFlag.hpp:25
@ normal
Definition: ReadFlag.hpp:23
constexpr ReadFlag & operator&=(ReadFlag &a, ReadFlag b)
Definition: ReadFlag.hpp:88
constexpr void set(ReadFlag &f, ReadFlag bit)
Definition: ReadFlag.hpp:99
constexpr void unset(ReadFlag &f, ReadFlag bit)
Definition: ReadFlag.hpp:109
std::string to_string(const AbsInfo &info)
constexpr ReadFlag operator&(ReadFlag a, ReadFlag b) noexcept
Definition: ReadFlag.hpp:45
std::ostream & operator<<(std::ostream &out, const AbsInfo &info)
constexpr ReadFlag operator^(ReadFlag a, ReadFlag b) noexcept
Definition: ReadFlag.hpp:56
constexpr ReadFlag operator|(ReadFlag a, ReadFlag b) noexcept
Definition: ReadFlag.hpp:34
constexpr ReadFlag & operator|=(ReadFlag &a, ReadFlag b)
Definition: ReadFlag.hpp:77
constexpr ReadFlag operator~(ReadFlag a) noexcept
Definition: ReadFlag.hpp:67