C++ Actor Framework 0.19
|
Base type for inspectors that load objects from some input source. More...
#include <load_inspector.hpp>
Inherited by caf::load_inspector_base< binary_deserializer >, caf::load_inspector_base< deserializer >, and caf::load_inspector_base< Subtype >.
Public Member Functions | |
void | set_error (error stop_reason) |
template<class... Ts> | |
void | emplace_error (Ts &&... xs) |
const error & | get_error () const noexcept |
error && | move_error () noexcept |
template<class... Ts> | |
void | field_invariant_check_failed (std::string msg) |
template<class... Ts> | |
void | field_value_synchronization_failed (std::string msg) |
template<class... Ts> | |
void | invalid_field_type (std::string msg) |
Static Public Member Functions | |
template<class T > | |
static auto | field (std::string_view name, T &x) |
template<class Get , class Set > | |
static auto | field (std::string_view name, Get get, Set set) |
template<class IsPresent , class Get , class Reset , class Set > | |
static auto | field (std::string_view name, IsPresent &&, Get &&get, Reset reset, Set set) |
Static Public Attributes | |
static constexpr bool | is_loading = true |
Enables dispatching on the inspector type. | |
Protected Attributes | |
error | err_ |
Base type for inspectors that load objects from some input source.
Deriving from this class enables the inspector DSL.
object()
member function for the DSL.