SectionPairFileReaderParameter.hpp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-21
  6. * Changed: 2024-09-09
  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/IEvaluator.hpp>
  12. #include <ls-std/core/interface/IReader.hpp>
  13. #include <ls-std/io/section-pair/model/SectionPairDocument.hpp>
  14. #include <ls-std/os/dynamic-goal.hpp>
  15. #include <memory>
  16. #include <string>
  17. #include <string_view>
  18. /*
  19. * @doc: class(name: 'SectionPairFileReaderParameter', package: 'io')
  20. * */
  21. namespace ls::std::io
  22. {
  23. class LS_STD_DYNAMIC_GOAL SectionPairFileReaderParameter
  24. {
  25. public:
  26. SectionPairFileReaderParameter();
  27. ~SectionPairFileReaderParameter();
  28. [[nodiscard]] ::std::shared_ptr<ls::std::io::SectionPairDocument> getDocument() const;
  29. [[nodiscard]] ::std::shared_ptr<ls::std::core::interface_type::IEvaluator> getFileExistenceEvaluator() const;
  30. [[nodiscard]] ::std::string getFilePath() const;
  31. [[nodiscard]] ::std::shared_ptr<ls::std::core::interface_type::IReader> getReader() const;
  32. void setDocument(const ::std::shared_ptr<ls::std::io::SectionPairDocument> &_document);
  33. void setFileExistenceEvaluator(const ::std::shared_ptr<ls::std::core::interface_type::IEvaluator> &_fileExistenceEvaluator);
  34. void setFilePath(::std::string_view _filePath);
  35. void setReader(const ::std::shared_ptr<ls::std::core::interface_type::IReader> &_reader);
  36. private:
  37. ::std::shared_ptr<ls::std::io::SectionPairDocument> document{};
  38. ::std::shared_ptr<ls::std::core::interface_type::IEvaluator> fileExistenceEvaluator{};
  39. ::std::string filePath{};
  40. ::std::shared_ptr<ls::std::core::interface_type::IReader> reader{};
  41. };
  42. }
  43. #endif