SerializableSectionPairParameter.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-17
  6. * Changed: 2024-09-09
  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. /*
  17. * @doc: class(name: 'SerializableSectionPairParameter', package: 'io')
  18. * */
  19. namespace ls::std::io
  20. {
  21. class LS_STD_DYNAMIC_GOAL SerializableSectionPairParameter
  22. {
  23. public:
  24. SerializableSectionPairParameter();
  25. ~SerializableSectionPairParameter();
  26. [[nodiscard]] ::std::string getNewLine() const;
  27. [[nodiscard]] ::std::shared_ptr<ls::std::core::Class> getValue() const;
  28. void setNewLine(::std::string_view _newLine);
  29. void setValue(const ::std::shared_ptr<ls::std::core::Class> &_value);
  30. private:
  31. ::std::string parseNewLine{};
  32. ::std::shared_ptr<ls::std::core::Class> value{};
  33. };
  34. }
  35. #endif