/* * Author: Patrick-Christopher Mattulat * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2023-02-11 * Changed: 2024-09-09 * * */ #ifndef LS_STD_SERIALIZABLE_SECTION_PAIR_ROW_HPP #define LS_STD_SERIALIZABLE_SECTION_PAIR_ROW_HPP #include "SerializableSectionPairParameter.hpp" #include #include #include #include #include /* * @doc: class(name: 'SerializableSectionPairRow', package: 'io') * */ namespace ls::std::io { class LS_STD_DYNAMIC_GOAL SerializableSectionPairRow : public ls::std::core::interface_type::ISerializable, public ls::std::core::Class { public: explicit SerializableSectionPairRow(const ls::std::io::SerializableSectionPairParameter &_parameter); ~SerializableSectionPairRow() noexcept override; [[nodiscard]] ::std::shared_ptr getValue() const; [[nodiscard]] ls::std::core::type::byte_field marshal() override; void unmarshal(const ls::std::core::type::byte_field &_data) override; private: ls::std::io::SerializableSectionPairParameter parameter{}; [[nodiscard]] ::std::string _marshalKey() const; void _unmarshalListValue(const ls::std::core::type::byte_field &_data) const; void _unmarshalSingleValue(const ls::std::core::type::byte_field &_data) const; }; } #endif