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;
149 ::std::ostream& operator<<(::std::ostream& out,
const request_builder& builder);
const request_config & get_request_config() const noexcept
Get the current request config.
friend::std::ostream & operator<<(::std::ostream &out, const request_builder &builder)
Stream insertion operator for GPIO request builder objects.
const line_config & get_line_config() const noexcept
Get the current line config.
Stores the context of a set of requested GPIO lines.
request_builder & set_request_config(request_config &req_cfg)
Set the request config for the request.
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.
::std::vector< value > values
Vector of line values.
Intermediate object storing the configuration for a line request.
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. ...
Contains a set of line config options used in line requests and reconfiguration.
line_request do_request()
Make the line request.
request_builder & set_line_config(line_config &line_cfg)
Set the line config for this request.
Stores GPIO line settings.
request_builder & set_consumer(const ::std::string &consumer) noexcept
Set consumer in the request config stored by this object.
Stores a set of options passed to the kernel when making a line request.
::std::vector< offset > offsets
Vector of line offsets.
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.
Wrapper around unsigned int for representing line offsets.