1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-02-11
- * Changed: 2024-09-13
- *
- * */
- #ifndef LS_STD_SERIALIZABLE_SECTION_PAIR_ROW_LIST_VALUE_HPP
- #define LS_STD_SERIALIZABLE_SECTION_PAIR_ROW_LIST_VALUE_HPP
- #include "SerializableSectionPairParameter.hpp"
- #include <ls-std/core/Class.hpp>
- #include <ls-std/core/interface/ISerializable.hpp>
- #include <ls-std/os/dynamic-goal.hpp>
- #include <memory>
- #include <string_view>
- /*
- * @doc: class(name: 'SerializableSectionPairRowListValue', package: 'io')
- * @doc: io.SerializableSectionPairRowListValue.description('This class can serialize a Section Pair row list value for file persistence.')
- * */
- namespace ls::std::io
- {
- class LS_STD_DYNAMIC_GOAL SerializableSectionPairRowListValue : public ls::std::core::interface_type::ISerializable, public ls::std::core::Class
- {
- public:
- explicit SerializableSectionPairRowListValue(const ls::std::io::SerializableSectionPairParameter &_parameter);
- ~SerializableSectionPairRowListValue() noexcept override;
- [[nodiscard]] ::std::shared_ptr<ls::std::core::Class> 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]] static ::std::string _getLine(::std::string::size_type _position, ::std::string_view _searchText);
- void _updateSearchText(::std::string::size_type _position, ls::std::core::type::byte_field &_searchText) const;
- };
- }
- #endif
|