SectionPairRowValue.cpp 1.2 KB

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