SerializableSectionPairRowListValue.hpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-11
  6. * Changed: 2023-02-11
  7. *
  8. * */
  9. #ifndef LS_STD_SERIALIZABLE_SECTION_PAIR_ROW_LIST_VALUE_HPP
  10. #define LS_STD_SERIALIZABLE_SECTION_PAIR_ROW_LIST_VALUE_HPP
  11. #include <ls-std/core/interface/ISerializable.hpp>
  12. #include <ls-std/io/section-pair/model/SectionPairRowListValue.hpp>
  13. #include <ls-std/os/dynamic-goal.hpp>
  14. #include <memory>
  15. namespace ls::std::io
  16. {
  17. class LS_STD_DYNAMIC_GOAL SerializableSectionPairRowListValue : public ls::std::core::interface_type::ISerializable
  18. {
  19. public:
  20. explicit SerializableSectionPairRowListValue(const ::std::shared_ptr<ls::std::io::SectionPairRowListValue> &_value);
  21. ~SerializableSectionPairRowListValue() override;
  22. [[nodiscard]] ::std::shared_ptr<ls::std::io::SectionPairRowListValue> getValue();
  23. [[nodiscard]] ls::std::core::type::byte_field marshal() override;
  24. void unmarshal(const ls::std::core::type::byte_field &_data) override;
  25. private:
  26. ::std::shared_ptr<ls::std::io::SectionPairRowListValue> value{};
  27. [[nodiscard]] static ::std::string _getLine(::std::string::size_type _position, const ls::std::core::type::byte_field &_searchText);
  28. void _setValue(const ::std::shared_ptr<ls::std::io::SectionPairRowListValue> &_value);
  29. static void _updateSearchText(::std::string::size_type _position, ls::std::core::type::byte_field &_searchText);
  30. };
  31. }
  32. #endif