SerializableSectionPairRowSingleValue.hpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_SINGLE_VALUE_HPP
  11. #define LS_STD_SERIALIZABLE_SECTION_PAIR_ROW_SINGLE_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. /*
  18. * @doc: class(name: 'SerializableSectionPairRowSingleValue', package: 'io')
  19. * @doc: io.SerializableSectionPairRowSingleValue.description('This class can serialize a Section Pair single value for file persistence.')
  20. * */
  21. namespace ls::standard::io
  22. {
  23. class LS_STD_DYNAMIC_GOAL SerializableSectionPairRowSingleValue : public ls::standard::core::interface_type::ISerializable, public ls::standard::core::Class
  24. {
  25. public:
  26. explicit SerializableSectionPairRowSingleValue(const ls::standard::io::SerializableSectionPairParameter &_parameter);
  27. ~SerializableSectionPairRowSingleValue() noexcept override;
  28. [[nodiscard]] ::std::shared_ptr<ls::standard::core::Class> getValue() const;
  29. [[nodiscard]] ls::standard::core::type::byte_field marshal() override;
  30. void unmarshal(const ls::standard::core::type::byte_field &_data) override;
  31. private:
  32. ls::standard::io::SerializableSectionPairParameter parameter{};
  33. };
  34. }
  35. #endif