123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef LS_STD_SERIALIZABLE_SECTION_PAIR_ROW_HPP
- #define LS_STD_SERIALIZABLE_SECTION_PAIR_ROW_HPP
- #include <ls-std/core/interface/ISerializable.hpp>
- #include <ls-std/io/section-pair/model/SectionPairRow.hpp>
- #include <memory>
- #include <string>
- namespace ls::std::io
- {
- class SerializableSectionPairRow : public ls::std::core::interface_type::ISerializable
- {
- public:
- explicit SerializableSectionPairRow(const ::std::shared_ptr<ls::std::io::SectionPairRow> &_value);
- ~SerializableSectionPairRow() override;
- [[nodiscard]] ::std::shared_ptr<ls::std::io::SectionPairRow> getValue();
- [[nodiscard]] ls::std::core::type::byte_field marshal() override;
- void unmarshal(const ls::std::core::type::byte_field &_data) override;
- private:
- ::std::shared_ptr<ls::std::io::SectionPairRow> value{};
- [[nodiscard]] ::std::string _marshalKey();
- void _setValue(const ::std::shared_ptr<ls::std::io::SectionPairRow> &_value);
- void _unmarshalListValue(const ls::std::core::type::byte_field &_data);
- void _unmarshalSingleValue(const ls::std::core::type::byte_field &_data);
- };
- }
- #endif
|