SectionPairRowValue.hpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_VALUE_HPP
  11. #define LS_STD_SECTION_PAIR_ROW_VALUE_HPP
  12. #include <ls-std/core/interface/ISerializable.hpp>
  13. #include <ls-std/io/section-pair/SectionPairRowEnumType.hpp>
  14. #include <ls-std/os/dynamic-goal.hpp>
  15. #include <string_view>
  16. /*
  17. * @doc: class(name: 'SectionPairRowValue', package: 'io')
  18. * @doc: io.SectionPairRowValue.description('This class represents a Section Pair row value.')
  19. * */
  20. namespace ls::standard::io
  21. {
  22. class LS_STD_DYNAMIC_GOAL SectionPairRowValue : public ls::standard::core::interface_type::ISerializable
  23. {
  24. public:
  25. explicit SectionPairRowValue(const ls::standard::io::SectionPairRowEnumType &_type);
  26. ~SectionPairRowValue() noexcept override;
  27. virtual ls::standard::io::SectionPairRowEnumType getType() = 0;
  28. [[nodiscard]] ls::standard::core::type::byte_field marshal() override;
  29. void reserveNewLine(::std::string_view _reservedNewLine);
  30. void unmarshal(const ls::standard::core::type::byte_field &_data) override;
  31. protected:
  32. [[nodiscard]] ::std::string _getReservedNewLine() const;
  33. [[nodiscard]] ls::standard::io::SectionPairRowEnumType _getType() const;
  34. private:
  35. ::std::string reservedNewLine{};
  36. ls::standard::io::SectionPairRowEnumType type{};
  37. };
  38. }
  39. #endif