SerializableSectionPairRowSingleValue.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-11
  6. * Changed: 2024-09-09
  7. *
  8. * */
  9. #ifndef LS_STD_SERIALIZABLE_SECTION_PAIR_ROW_SINGLE_VALUE_HPP
  10. #define LS_STD_SERIALIZABLE_SECTION_PAIR_ROW_SINGLE_VALUE_HPP
  11. #include "SerializableSectionPairParameter.hpp"
  12. #include <ls-std/core/Class.hpp>
  13. #include <ls-std/core/interface/ISerializable.hpp>
  14. #include <ls-std/os/dynamic-goal.hpp>
  15. #include <memory>
  16. /*
  17. * @doc: class(name: 'SerializableSectionPairRowSingleValue', package: 'io')
  18. * */
  19. namespace ls::std::io
  20. {
  21. class LS_STD_DYNAMIC_GOAL SerializableSectionPairRowSingleValue : public ls::std::core::interface_type::ISerializable, public ls::std::core::Class
  22. {
  23. public:
  24. explicit SerializableSectionPairRowSingleValue(const ls::std::io::SerializableSectionPairParameter &_parameter);
  25. ~SerializableSectionPairRowSingleValue() noexcept override;
  26. [[nodiscard]] ::std::shared_ptr<ls::std::core::Class> getValue() const;
  27. [[nodiscard]] ls::std::core::type::byte_field marshal() override;
  28. void unmarshal(const ls::std::core::type::byte_field &_data) override;
  29. private:
  30. ls::std::io::SerializableSectionPairParameter parameter{};
  31. };
  32. }
  33. #endif