C++ Actor Framework 1.0.0
|
Serializes an objects into a config_value. More...
#include <config_value_writer.hpp>
Public Types | |
using | super = serializer |
using | value_type |
using | stack_type = std::stack<value_type, std::vector<value_type>> |
![]() | |
using | super = save_inspector_base<serializer> |
Public Member Functions | |
config_value_writer (config_value *dst, actor_system &sys) | |
config_value_writer (config_value *dst) | |
bool | begin_object (type_id_t type, std::string_view name) override |
Begins processing of an object. | |
bool | end_object () override |
Ends processing of an object. | |
bool | begin_field (std::string_view) override |
bool | begin_field (std::string_view name, bool is_present) override |
bool | begin_field (std::string_view name, span< const type_id_t > types, size_t index) override |
bool | begin_field (std::string_view name, bool is_present, span< const type_id_t > types, size_t index) override |
bool | end_field () override |
bool | begin_tuple (size_t size) override |
Begins processing of a tuple. | |
bool | end_tuple () override |
Ends processing of a tuple. | |
bool | begin_key_value_pair () override |
Begins processing of a tuple with two elements, whereas the first element represents the key in an associative array. | |
bool | end_key_value_pair () override |
Ends processing of a key-value pair after both values were written. | |
bool | begin_sequence (size_t size) override |
Begins processing of a sequence. Saves the size to the underlying storage. | |
bool | end_sequence () override |
Ends processing of a sequence. | |
bool | begin_associative_array (size_t size) override |
Begins processing of an associative array (map). | |
bool | end_associative_array () override |
Ends processing of an associative array (map). | |
bool | value (std::byte x) override |
Adds x to the output. | |
bool | value (bool x) override |
Adds x to the output. | |
bool | value (int8_t x) override |
Adds x to the output. | |
bool | value (uint8_t x) override |
Adds x to the output. | |
bool | value (int16_t x) override |
Adds x to the output. | |
bool | value (uint16_t x) override |
Adds x to the output. | |
bool | value (int32_t x) override |
Adds x to the output. | |
bool | value (uint32_t x) override |
Adds x to the output. | |
bool | value (int64_t x) override |
Adds x to the output. | |
bool | value (uint64_t x) override |
Adds x to the output. | |
bool | value (float x) override |
Adds x to the output. | |
bool | value (double x) override |
Adds x to the output. | |
bool | value (long double x) override |
Adds x to the output. | |
bool | value (std::string_view x) override |
Adds x to the output. | |
bool | value (const std::u16string &x) override |
Adds x to the output. | |
bool | value (const std::u32string &x) override |
Adds x to the output. | |
bool | value (span< const std::byte > x) override |
Adds x as raw byte block to the output. | |
![]() | |
serializer (actor_system &sys) noexcept | |
actor_system * | context () const noexcept |
bool | has_human_readable_format () const noexcept |
template<class T > | |
std::enable_if_t< std::is_integral_v< T >, bool > | value (T x) |
Adds x to the output. | |
virtual bool | list (const std::vector< bool > &xs) |
Adds each boolean in xs to the output. | |
Additional Inherited Members | |
![]() | |
actor_system * | context_ = nullptr |
Provides access to the proxy_registry and to the actor_system. | |
bool | has_human_readable_format_ = false |
Configures whether client code should assume human-readable output. | |
Serializes an objects into a config_value.
using caf::config_value_writer::value_type |
|
overridevirtual |
Begins processing of an associative array (map).
begin_sequence(size)
. Reimplemented from caf::serializer.
|
overridevirtual |
Implements caf::serializer.
|
overridevirtual |
Implements caf::serializer.
|
overridevirtual |
Implements caf::serializer.
|
overridevirtual |
Implements caf::serializer.
|
overridevirtual |
Begins processing of a tuple with two elements, whereas the first element represents the key in an associative array.
begin_tuple(2)
. Reimplemented from caf::serializer.
|
overridevirtual |
Begins processing of an object.
May save the type information to the underlying storage to allow a deserializer to retrieve and check the type information for data formats that provide deserialization.
Implements caf::serializer.
|
overridevirtual |
Begins processing of a sequence. Saves the size to the underlying storage.
Implements caf::serializer.
|
overridevirtual |
Begins processing of a tuple.
Implements caf::serializer.
|
overridevirtual |
Ends processing of an associative array (map).
end_sequence()
. Reimplemented from caf::serializer.
|
overridevirtual |
Implements caf::serializer.
|
overridevirtual |
Ends processing of a key-value pair after both values were written.
end_tuple()
. Reimplemented from caf::serializer.
|
overridevirtual |
Ends processing of an object.
Implements caf::serializer.
|
overridevirtual |
Ends processing of a sequence.
Implements caf::serializer.
|
overridevirtual |
Ends processing of a tuple.
Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
as raw byte block to the output.
x | The byte sequence. |
sec::success
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.
|
overridevirtual |
Adds x
to the output.
x | A value for a builtin type. |
true
on success, false
otherwise. Implements caf::serializer.