SectionPairRowValue.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #include <ls-std/io/section-pair/model/SectionPairRowValue.hpp>
  11. #include <ls-std/core/exception/NotImplementedException.hpp>
  12. using ls::standard::core::type::byte_field;
  13. using ls::standard::core::NotImplementedException;
  14. using ls::standard::io::SectionPairRowEnumType;
  15. using ls::standard::io::SectionPairRowValue;
  16. using std::string;
  17. using std::string_view;
  18. SectionPairRowValue::SectionPairRowValue(const SectionPairRowEnumType &_type) : type(_type)
  19. {}
  20. SectionPairRowValue::~SectionPairRowValue() noexcept = default;
  21. byte_field SectionPairRowValue::marshal()
  22. {
  23. return byte_field{};
  24. }
  25. void SectionPairRowValue::reserveNewLine(const string_view _reservedNewLine)
  26. {
  27. this->reservedNewLine = _reservedNewLine;
  28. }
  29. void SectionPairRowValue::unmarshal(const byte_field &_data)
  30. {
  31. throw NotImplementedException("data (" + _data + ") not used!");
  32. }
  33. string SectionPairRowValue::_getReservedNewLine() const
  34. {
  35. return this->reservedNewLine;
  36. }
  37. SectionPairRowEnumType SectionPairRowValue::_getType() const
  38. {
  39. return this->type;
  40. }