Class anira::JobOptionsHandle#

class JobOptionsHandle#

An anira_job_options with its lifetime, minted from a JobOptions aggregate. Extension values set through ext() are copied and kept alive, with their C records, by the handle (the C entry borrows them until submit).

Public Functions

inline explicit JobOptionsHandle(const JobOptions &options = {})#
Throws:

Error – when the C entry refuses the call; the status says why.

inline ~JobOptionsHandle()#
JobOptionsHandle(const JobOptionsHandle&) = delete#
JobOptionsHandle &operator=(const JobOptionsHandle&) = delete#
inline JobOptionsHandle(JobOptionsHandle &&other) noexcept#
inline JobOptionsHandle &operator=(JobOptionsHandle &&other) noexcept#
template<class Ext>
inline JobOptionsHandle &ext(const Ext &value)#

A per-job extension. The C entry borrows the record until submit, so the handle keeps the value and its record alive (a copy of the value: a temporary argument is fine).

inline JobOptionsHandle &ext_json(std::string_view kind, std::string_view utf8)#
inline const anira_job_options *native() const noexcept#
inline anira_job_options *native() noexcept#