SectionPairRowValue.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-10
  6. * Changed: 2023-05-22
  7. *
  8. * */
  9. #include <ls-std/io/section-pair/model/SectionPairRowValue.hpp>
  10. using ls::std::core::type::byte_field;
  11. using ls::std::io::SectionPairRowEnumType;
  12. using ls::std::io::SectionPairRowValue;
  13. using std::string;
  14. using std::string_view;
  15. SectionPairRowValue::SectionPairRowValue(const SectionPairRowEnumType &_type) : type(_type)
  16. {}
  17. SectionPairRowValue::~SectionPairRowValue() noexcept = default;
  18. byte_field SectionPairRowValue::marshal()
  19. {
  20. return byte_field{};
  21. }
  22. void SectionPairRowValue::reserveNewLine(string_view _reservedNewLine)
  23. {
  24. this->reservedNewLine = _reservedNewLine;
  25. }
  26. void SectionPairRowValue::unmarshal(const byte_field &_data)
  27. {
  28. // since this class is abstract, these methods are not implemented
  29. }
  30. string SectionPairRowValue::_getReservedNewLine() const
  31. {
  32. return this->reservedNewLine;
  33. }
  34. SectionPairRowEnumType SectionPairRowValue::_getType() const
  35. {
  36. return this->type;
  37. }