8#ifndef __LIBGPIOD_CXX_REQUEST_BUILDER_HPP__
9#define __LIBGPIOD_CXX_REQUEST_BUILDER_HPP__
11#if !defined(__LIBGPIOD_GPIOD_CXX_INSIDE__)
12#error "Only gpiod.hpp can be included directly."
137 ::std::unique_ptr<impl> _m_priv;
140 friend ::std::ostream& operator<<(::std::ostream& out, const
request_builder& builder);
149::std::ostream& operator<<(::std::ostream& out, const
request_builder& builder);
Contains a set of line config options used in line requests and reconfiguration.
Stores the context of a set of requested GPIO lines.
Stores GPIO line settings.
Intermediate object storing the configuration for a line request.
request_builder & set_event_buffer_size(::std::size_t event_buffer_size) noexcept
Set the event buffer size in the request config stored by this object.
request_builder & set_line_config(line_config &line_cfg)
Set the line config for this request.
request_builder & operator=(request_builder &&other) noexcept
Move assignment operator.
const request_config & get_request_config() const noexcept
Get the current request config.
request_builder & add_line_settings(line::offset offset, const line_settings &settings)
Add line settings to the line config stored by this object for a single offset.
const line_config & get_line_config() const noexcept
Get the current line config.
request_builder & set_consumer(const ::std::string &consumer) noexcept
Set consumer in the request config stored by this object.
line_request do_request()
Make the line request.
request_builder(request_builder &&other) noexcept
Move constructor.
request_builder & set_output_values(const line::values &values)
Set output values for a number of lines in the line config stored by this object.
request_builder & set_request_config(request_config &req_cfg)
Set the request config for the request.
Stores a set of options passed to the kernel when making a line request.
::std::vector< value > values
Vector of line values.
::std::vector< offset > offsets
Vector of line offsets.