Cross-platform implementation of serializer backend using ASCII-only strings. More...
#include <eagine/serialize/string_backend.hpp>
Public Member Functions | |
| auto | enum_as_string () -> bool final |
| @brie Indicates if the backed stores enumerators as strings (or numeric values). | |
| auto | begin () -> result final |
| Starts the serialization of a potentially complex structured value. | |
| auto | begin_struct (span_size_t count) -> result final |
| Begins the serialization of a structure instance. | |
| auto | begin_member (string_view name) -> result final |
| Begins the serialization of a structure data member. | |
| auto | finish_member (string_view) -> result final |
| Finishes the serialization of a structure data member. | |
| auto | finish_struct () -> result final |
| Finishes the serialization of a structure instance. | |
| auto | begin_list (span_size_t count) -> result final |
| Begins the serialization of a container instance. | |
| auto | begin_element (span_size_t) -> result final |
| Begins the serialization of a container element. | |
| auto | finish_element (span_size_t) -> result final |
| Finishes the serialization of a container element. | |
| auto | finish_list () -> result final |
| Finishes the serialization of a container instance. | |
| auto | finish () -> result final |
| Finishes the serialization of a potentially complex structured value. | |
Public Member Functions inherited from eagine::serializer_backend_id< common_serializer_backend< string_serializer_backend >, EAGINE_ID_V(String)> | |
| auto | type_id () -> identifier final |
Public Member Functions inherited from eagine::common_serializer_backend< string_serializer_backend > | |
| common_serializer_backend () noexcept=default | |
| Default constructor. | |
| common_serializer_backend (serializer_data_sink &s) noexcept | |
| Construction from a reference to a Sink. | |
| auto | set_sink (serializer_data_sink &s) noexcept -> auto & |
| Sets a reference to a new Sink object. | |
Public Member Functions inherited from eagine::interface< serializer_backend > | |
| constexpr | interface (const interface &)=delete |
| Not copyable. | |
| auto | operator= (interface &&)=delete |
| Not move assignable. | |
| auto | operator= (const interface &)=delete |
| Not copy assignable. | |
Additional Inherited Members | |
Public Types inherited from eagine::serializer_backend | |
| using | result = serialization_errors |
| Alias for the serialization operations result type. | |
Protected Member Functions inherited from eagine::interface< serializer_backend > | |
| constexpr | interface () noexcept=default |
| Default constructible by derived. | |
| constexpr | interface (interface &&) noexcept=default |
| Move constructible by derived. | |
Cross-platform implementation of serializer backend using ASCII-only strings.