SectionPairRowValue.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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-22
  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() noexcept override;
  21. virtual ls::std::io::SectionPairRowEnumType getType() = 0;
  22. [[nodiscard]] ls::std::core::type::byte_field marshal() override;
  23. void reserveNewLine(const ::std::string &_reservedNewLine);
  24. void unmarshal(const ls::std::core::type::byte_field &_data) override;
  25. protected:
  26. ::std::string reservedNewLine{};
  27. ls::std::io::SectionPairRowEnumType type{};
  28. };
  29. }
  30. #endif