SectionPairFileReaderParameter.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-21
  6. * Changed: 2023-02-21
  7. *
  8. * */
  9. #ifndef LS_STD_SECTION_PAIR_FILE_READER_PARAMETER_HPP
  10. #define LS_STD_SECTION_PAIR_FILE_READER_PARAMETER_HPP
  11. #include <ls-std/core/interface/IReader.hpp>
  12. #include <ls-std/io/section-pair/model/SectionPairDocument.hpp>
  13. #include <ls-std/os/dynamic-goal.hpp>
  14. #include <memory>
  15. #include <string>
  16. namespace ls::std::io
  17. {
  18. class LS_STD_DYNAMIC_GOAL SectionPairFileReaderParameter
  19. {
  20. public:
  21. SectionPairFileReaderParameter();
  22. ~SectionPairFileReaderParameter();
  23. [[nodiscard]] ::std::shared_ptr<ls::std::io::SectionPairDocument> getDocument();
  24. [[nodiscard]] ::std::string getFilePath();
  25. void setDocument(const ::std::shared_ptr<ls::std::io::SectionPairDocument> &_document);
  26. void setFilePath(const ::std::string &_filePath);
  27. [[nodiscard]] ::std::shared_ptr<ls::std::core::interface_type::IReader> getReader();
  28. void setReader(const ::std::shared_ptr<core::interface_type::IReader> &_reader);
  29. private:
  30. ::std::shared_ptr<ls::std::io::SectionPairDocument> document{};
  31. ::std::string filePath{};
  32. ::std::shared_ptr<ls::std::core::interface_type::IReader> reader{};
  33. };
  34. }
  35. #endif