SectionPairRowValue.hpp 999 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-10
  6. * Changed: 2023-02-16
  7. *
  8. * */
  9. #ifndef LS_STD_SECTION_PAIR_ROW_VALUE_HPP
  10. #define LS_STD_SECTION_PAIR_ROW_VALUE_HPP
  11. #include <ls-std/core/interface/ISerializable.hpp>
  12. #include <ls-std/io/section-pair/SectionPairRowEnumType.hpp>
  13. #include <ls-std/os/dynamic-goal.hpp>
  14. namespace ls::std::io
  15. {
  16. class LS_STD_DYNAMIC_GOAL SectionPairRowValue : public ls::std::core::interface_type::ISerializable
  17. {
  18. public:
  19. explicit SectionPairRowValue(const ls::std::io::SectionPairRowEnumType &_type);
  20. ~SectionPairRowValue() override;
  21. virtual ls::std::io::SectionPairRowEnumType getType() = 0;
  22. [[nodiscard]] ls::std::core::type::byte_field marshal() override;
  23. void unmarshal(const ls::std::core::type::byte_field &_data) override;
  24. protected:
  25. ls::std::io::SectionPairRowEnumType type{};
  26. };
  27. }
  28. #endif