SerializableSectionPairParameter.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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-17
  7. * Changed: 2026-06-23
  8. *
  9. * */
  10. #include <ls-std/io/NewLine.hpp>
  11. #include <ls-std/io/section-pair/serialization/SerializableSectionPairParameter.hpp>
  12. using ls::standard::core::Class;
  13. using ls::standard::io::NewLine;
  14. using ls::standard::io::SerializableSectionPairParameter;
  15. using std::shared_ptr;
  16. using std::string;
  17. using std::string_view;
  18. SerializableSectionPairParameter::SerializableSectionPairParameter() : parseNewLine(NewLine::get())
  19. {}
  20. SerializableSectionPairParameter::~SerializableSectionPairParameter() = default;
  21. string SerializableSectionPairParameter::getNewLine() const
  22. {
  23. return this->parseNewLine;
  24. }
  25. shared_ptr<Class> SerializableSectionPairParameter::getValue() const
  26. {
  27. return this->value;
  28. }
  29. void SerializableSectionPairParameter::setNewLine(const string_view _newLine)
  30. {
  31. this->parseNewLine = _newLine;
  32. }
  33. void SerializableSectionPairParameter::setValue(const shared_ptr<Class> &_value)
  34. {
  35. this->value = _value;
  36. }