SectionPairFileReaderParameter.hpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-21
  6. * Changed: 2023-05-18
  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. namespace ls::std::io
  19. {
  20. class LS_STD_DYNAMIC_GOAL SectionPairFileReaderParameter
  21. {
  22. public:
  23. SectionPairFileReaderParameter();
  24. ~SectionPairFileReaderParameter();
  25. [[nodiscard]] ::std::shared_ptr<ls::std::io::SectionPairDocument> getDocument() const;
  26. [[nodiscard]] ::std::shared_ptr<ls::std::core::interface_type::IEvaluator> getFileExistenceEvaluator() const;
  27. [[nodiscard]] ::std::string getFilePath() const;
  28. [[nodiscard]] ::std::shared_ptr<ls::std::core::interface_type::IReader> getReader() const;
  29. void setDocument(const ::std::shared_ptr<ls::std::io::SectionPairDocument> &_document);
  30. void setFileExistenceEvaluator(const ::std::shared_ptr<ls::std::core::interface_type::IEvaluator> &_fileExistenceEvaluator);
  31. void setFilePath(::std::string_view _filePath);
  32. void setReader(const ::std::shared_ptr<ls::std::core::interface_type::IReader> &_reader);
  33. private:
  34. ::std::shared_ptr<ls::std::io::SectionPairDocument> document{};
  35. ::std::shared_ptr<ls::std::core::interface_type::IEvaluator> fileExistenceEvaluator{};
  36. ::std::string filePath{};
  37. ::std::shared_ptr<ls::std::core::interface_type::IReader> reader{};
  38. };
  39. }
  40. #endif