SerializableSectionPairRowListValue.hpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Co-Author: Claude Sonnet 4.6 (LLM)
  4. * Company: Lynar Studios
  5. * E-Mail: webmaster@lynarstudios.com
  6. * Created: 2023-02-11
  7. * Changed: 2026-06-23
  8. *
  9. * */
  10. #ifndef LS_STD_SERIALIZABLE_SECTION_PAIR_ROW_LIST_VALUE_HPP
  11. #define LS_STD_SERIALIZABLE_SECTION_PAIR_ROW_LIST_VALUE_HPP
  12. #include "SerializableSectionPairParameter.hpp"
  13. #include <ls-std/core/Class.hpp>
  14. #include <ls-std/core/interface/ISerializable.hpp>
  15. #include <ls-std/os/dynamic-goal.hpp>
  16. #include <memory>
  17. #include <string_view>
  18. /*
  19. * @doc: class(name: 'SerializableSectionPairRowListValue', package: 'io')
  20. * @doc: io.SerializableSectionPairRowListValue.description('This class can serialize a Section Pair row list value for file persistence.')
  21. * */
  22. namespace ls::standard::io
  23. {
  24. class LS_STD_DYNAMIC_GOAL SerializableSectionPairRowListValue : public ls::standard::core::interface_type::ISerializable, public ls::standard::core::Class
  25. {
  26. public:
  27. explicit SerializableSectionPairRowListValue(const ls::standard::io::SerializableSectionPairParameter &_parameter);
  28. ~SerializableSectionPairRowListValue() noexcept override;
  29. [[nodiscard]] ::std::shared_ptr<ls::standard::core::Class> getValue() const;
  30. [[nodiscard]] ls::standard::core::type::byte_field marshal() override;
  31. void unmarshal(const ls::standard::core::type::byte_field &_data) override;
  32. private:
  33. ls::standard::io::SerializableSectionPairParameter parameter{};
  34. [[nodiscard]] static ::std::string _getLine(::std::string::size_type _position, ::std::string_view _searchText);
  35. void _updateSearchText(::std::string::size_type _position, ls::standard::core::type::byte_field &_searchText) const;
  36. };
  37. }
  38. #endif