SerializableSectionPairParameter.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-17
  6. * Changed: 2023-02-23
  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. SerializableSectionPairParameter::SerializableSectionPairParameter() : parseNewLine(NewLine::get())
  17. {}
  18. SerializableSectionPairParameter::~SerializableSectionPairParameter() = default;
  19. string SerializableSectionPairParameter::getNewLine()
  20. {
  21. return this->parseNewLine;
  22. }
  23. shared_ptr<Class> SerializableSectionPairParameter::getValue() const
  24. {
  25. return this->value;
  26. }
  27. void SerializableSectionPairParameter::setNewLine(const string &_newLine)
  28. {
  29. this->parseNewLine = _newLine;
  30. }
  31. void SerializableSectionPairParameter::setValue(const shared_ptr<Class> &_value)
  32. {
  33. this->value = _value;
  34. }