SectionPairRowSingleValue.hpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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-10
  7. * Changed: 2026-06-23
  8. *
  9. * */
  10. #ifndef LS_STD_SECTION_PAIR_ROW_SINGLE_VALUE_HPP
  11. #define LS_STD_SECTION_PAIR_ROW_SINGLE_VALUE_HPP
  12. #include "SectionPairRowValue.hpp"
  13. #include <ls-std/core/Class.hpp>
  14. #include <ls-std/core/interface/ISerializable.hpp>
  15. #include <ls-std/io/section-pair/SectionPairTypes.hpp>
  16. #include <ls-std/os/dynamic-goal.hpp>
  17. #include <memory>
  18. /*
  19. * @doc: class(name: 'SectionPairRowSingleValue', package: 'io')
  20. * @doc: io.SectionPairRowSingleValue.description('This class represents a Section Pair row single value.')
  21. * */
  22. namespace ls::standard::io
  23. {
  24. class LS_STD_DYNAMIC_GOAL SectionPairRowSingleValue : public ::std::enable_shared_from_this<SectionPairRowSingleValue>, public ls::standard::core::Class, public ls::standard::io::SectionPairRowValue
  25. {
  26. public:
  27. explicit SectionPairRowSingleValue(const ls::standard::io::section_pair_row_value &_value);
  28. ~SectionPairRowSingleValue() noexcept override;
  29. [[nodiscard]] ls::standard::io::section_pair_row_value get() const;
  30. [[nodiscard]] ls::standard::io::SectionPairRowEnumType getType() override;
  31. [[nodiscard]] ls::standard::core::type::byte_field marshal() override;
  32. void set(const ls::standard::io::section_pair_row_value &_value);
  33. void unmarshal(const ls::standard::core::type::byte_field &_data) override;
  34. private:
  35. ::std::shared_ptr<ls::standard::core::interface_type::ISerializable> serializable{};
  36. ls::standard::io::section_pair_row_value value{};
  37. void _createSerializable();
  38. void _set(const ls::standard::io::section_pair_row_value &_value);
  39. };
  40. }
  41. #endif