SectionPairFileReaderParameter.hpp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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/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. namespace ls::std::io
  18. {
  19. class LS_STD_DYNAMIC_GOAL SectionPairFileReaderParameter
  20. {
  21. public:
  22. SectionPairFileReaderParameter();
  23. ~SectionPairFileReaderParameter();
  24. [[nodiscard]] ::std::shared_ptr<ls::std::io::SectionPairDocument> getDocument();
  25. [[nodiscard]] ::std::shared_ptr<ls::std::core::interface_type::IEvaluator> getFileExistenceEvaluator();
  26. [[nodiscard]] ::std::string getFilePath();
  27. [[nodiscard]] ::std::shared_ptr<ls::std::core::interface_type::IReader> getReader();
  28. void setDocument(const ::std::shared_ptr<ls::std::io::SectionPairDocument> &_document);
  29. void setFileExistenceEvaluator(const ::std::shared_ptr<ls::std::core::interface_type::IEvaluator> &_fileExistenceEvaluator);
  30. void setFilePath(const ::std::string &_filePath);
  31. void setReader(const ::std::shared_ptr<ls::std::core::interface_type::IReader> &_reader);
  32. private:
  33. ::std::shared_ptr<ls::std::io::SectionPairDocument> document{};
  34. ::std::shared_ptr<ls::std::core::interface_type::IEvaluator> fileExistenceEvaluator{};
  35. ::std::string filePath{};
  36. ::std::shared_ptr<ls::std::core::interface_type::IReader> reader{};
  37. };
  38. }
  39. #endif