SerializableSectionPairParameter.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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-13
  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. * @doc: io.SerializableSectionPairParameter.description('This class is holding information for Section Pair serialization.')
  19. */
  20. namespace ls::std::io
  21. {
  22. class LS_STD_DYNAMIC_GOAL SerializableSectionPairParameter
  23. {
  24. public:
  25. SerializableSectionPairParameter();
  26. ~SerializableSectionPairParameter();
  27. [[nodiscard]] ::std::string getNewLine() const;
  28. [[nodiscard]] ::std::shared_ptr<ls::std::core::Class> getValue() const;
  29. void setNewLine(::std::string_view _newLine);
  30. void setValue(const ::std::shared_ptr<ls::std::core::Class> &_value);
  31. private:
  32. ::std::string parseNewLine{};
  33. ::std::shared_ptr<ls::std::core::Class> value{};
  34. };
  35. }
  36. #endif