SerializableSectionPairParameter.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-17
  6. * Changed: 2023-05-18
  7. *
  8. * */
  9. #include <ls-std/io/NewLine.hpp>
  10. #include <ls-std/io/section-pair/serialization/SerializableSectionPairParameter.hpp>
  11. using ls::std::core::Class;
  12. using ls::std::io::NewLine;
  13. using ls::std::io::SerializableSectionPairParameter;
  14. using std::shared_ptr;
  15. using std::string;
  16. using std::string_view;
  17. SerializableSectionPairParameter::SerializableSectionPairParameter() : parseNewLine(NewLine::get())
  18. {}
  19. SerializableSectionPairParameter::~SerializableSectionPairParameter() = default;
  20. string SerializableSectionPairParameter::getNewLine() const
  21. {
  22. return this->parseNewLine;
  23. }
  24. shared_ptr<Class> SerializableSectionPairParameter::getValue() const
  25. {
  26. return this->value;
  27. }
  28. void SerializableSectionPairParameter::setNewLine(string_view _newLine)
  29. {
  30. this->parseNewLine = _newLine;
  31. }
  32. void SerializableSectionPairParameter::setValue(const shared_ptr<Class> &_value)
  33. {
  34. this->value = _value;
  35. }