DUDS
Distributed Update of Data from Something
duds::os::linux Namespace Reference

Linux specific support code. More...

Classes

struct  EvdevCodeAddError
 An attempt was made to add an event code to a device that cannot support the code, or the code is invalid. More...
 
struct  EvdevError
 Base class for errors from libevdev. More...
 
struct  EvdevFileAlreadyOpenError
 An attempt was made to open a device file when one was already open. More...
 
struct  EvdevFileOpenError
 The input device file could not be opened. More...
 
struct  EvdevInitError
 Initializing use of the input device failed. More...
 
class  EvdevInput
 Handles getting input from a specific input device using libevdev. More...
 
struct  EvdevInputCreateError
 An error occured while attempting to create an input device. More...
 
struct  EvdevTypeAddError
 An attempt was made to add an event type to a device that cannot support the type, or the type is invalid. More...
 
struct  EvdevUnsupportedEvent
 The specified event type or code is not supported by the input device. More...
 
union  EventTypeCode
 Combines an event type and an event code, as defined by libevdev, for the purpose of using a combination of both to identify an input receiver. More...
 
class  InputHandlers
 Maintains a set of InputSignal objects to respond to input events. More...
 
class  Poller
 A simple C++ interface to using Linux's epoll functions. More...
 
struct  PollerCreateError
 The call to epoll_create() failed. More...
 
struct  PollerError
 The base class for all Poller errors; used for general errors. More...
 
struct  PollerLacksFileDescriptor
 An operation (remove) resulted in an error from an epoll function indicating that the file descriptor is not present (ENOENT). More...
 
class  PollResponder
 Responds to a poll event. More...
 
struct  PollResponderDoesNotExist
 Attempted to use a non-existent PollResponder object. More...
 
struct  ResponseRecord
 

Typedefs

typedef boost::error_info< struct Info_EvdevEventCode, unsigned int > EvdevEventCode
 The event code integer involved in an EvdevError. More...
 
typedef boost::error_info< struct Info_EvdevEventCode, std::string > EvdevEventCodeName
 The event code string involved in an EvdevError. More...
 
typedef boost::error_info< struct Info_EvdevEventType, unsigned int > EvdevEventType
 The event type integer involved in an EvdevError. More...
 
typedef boost::error_info< struct Info_EvdevEventType, std::string > EvdevEventTypeName
 The event type string involved in an EvdevError. More...
 
typedef boost::error_info< struct Info_EvdevEventValue, std::int32_t > EvdevEventValue
 The event value, usually an input value, involved in an EvdevError. More...
 
typedef std::shared_ptr< EvdevInputEvdevInputSptr
 A shared pointer to a EvdevInput object. More...
 
typedef std::shared_ptr< InputHandlersInputHandlersSptr
 Shared pointer to a InputHandlers class. More...
 
typedef boost::signals2::signal< void(EventTypeCode etc, std::int32_t value)> InputSignal
 The signal type that will handle input events. More...
 
typedef boost::error_info< struct Info_PollerFileDescriptor, int > PollerFileDescriptor
 Poller error attribute that includes the value of the file descriptor. More...
 
typedef std::shared_ptr< PollResponderPollResponderSptr
 

Detailed Description

Linux specific support code.

Typedef Documentation

◆ EvdevEventCode

typedef boost::error_info<struct Info_EvdevEventCode, unsigned int> duds::os::linux::EvdevEventCode

The event code integer involved in an EvdevError.

Definition at line 74 of file EvdevErrors.hpp.

◆ EvdevEventCodeName

typedef boost::error_info<struct Info_EvdevEventCode, std::string> duds::os::linux::EvdevEventCodeName

The event code string involved in an EvdevError.

Definition at line 86 of file EvdevErrors.hpp.

◆ EvdevEventType

typedef boost::error_info<struct Info_EvdevEventType, unsigned int> duds::os::linux::EvdevEventType

The event type integer involved in an EvdevError.

Definition at line 68 of file EvdevErrors.hpp.

◆ EvdevEventTypeName

typedef boost::error_info<struct Info_EvdevEventType, std::string> duds::os::linux::EvdevEventTypeName

The event type string involved in an EvdevError.

Definition at line 80 of file EvdevErrors.hpp.

◆ EvdevEventValue

typedef boost::error_info<struct Info_EvdevEventValue, std::int32_t> duds::os::linux::EvdevEventValue

The event value, usually an input value, involved in an EvdevError.

Definition at line 92 of file EvdevErrors.hpp.

◆ EvdevInputSptr

typedef std::shared_ptr<EvdevInput> duds::os::linux::EvdevInputSptr

A shared pointer to a EvdevInput object.

Examples:
bppmenu.cpp.

Definition at line 306 of file EvdevInput.hpp.

◆ InputHandlersSptr

Shared pointer to a InputHandlers class.

Definition at line 240 of file InputHandlers.hpp.

◆ InputSignal

typedef boost::signals2::signal<void(EventTypeCode etc, std::int32_t value)> duds::os::linux::InputSignal

The signal type that will handle input events.

Parameters
etcThe event type and event code of the input event to handle.
valueThe value of the input.

Definition at line 30 of file InputHandlers.hpp.

◆ PollerFileDescriptor

typedef boost::error_info<struct Info_PollerFileDescriptor, int> duds::os::linux::PollerFileDescriptor

Poller error attribute that includes the value of the file descriptor.

This might be useful in coordination with a debugger or other debugging output, but otherwise should be ignored.

Definition at line 67 of file Poller.hpp.

◆ PollResponderSptr

Definition at line 96 of file Poller.hpp.