SerializableSectionPairParameter.hpp 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifndef LS_STD_SERIALIZABLE_SECTION_PAIR_PARAMETER_HPP
  10. #define LS_STD_SERIALIZABLE_SECTION_PAIR_PARAMETER_HPP
  11. #include <ls-std/core/Class.hpp>
  12. #include <ls-std/os/dynamic-goal.hpp>
  13. #include <memory>
  14. #include <string>
  15. #include <string_view>
  16. namespace ls::std::io
  17. {
  18. class LS_STD_DYNAMIC_GOAL SerializableSectionPairParameter
  19. {
  20. public:
  21. SerializableSectionPairParameter();
  22. ~SerializableSectionPairParameter();
  23. [[nodiscard]] ::std::string getNewLine() const;
  24. [[nodiscard]] ::std::shared_ptr<ls::std::core::Class> getValue() const;
  25. void setNewLine(::std::string_view _newLine);
  26. void setValue(const ::std::shared_ptr<ls::std::core::Class> &_value);
  27. private:
  28. ::std::string parseNewLine{};
  29. ::std::shared_ptr<ls::std::core::Class> value{};
  30. };
  31. }
  32. #endif