SectionPairFileReaderParameter.hpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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-13
  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. * @doc: io.SectionPairFileReaderParameter.description('This class holds evaluators and the document instance for Section Pair file reading.')
  21. * */
  22. namespace ls::std::io
  23. {
  24. class LS_STD_DYNAMIC_GOAL SectionPairFileReaderParameter
  25. {
  26. public:
  27. SectionPairFileReaderParameter();
  28. ~SectionPairFileReaderParameter();
  29. [[nodiscard]] ::std::shared_ptr<ls::std::io::SectionPairDocument> getDocument() const;
  30. [[nodiscard]] ::std::shared_ptr<ls::std::core::interface_type::IEvaluator> getFileExistenceEvaluator() const;
  31. [[nodiscard]] ::std::string getFilePath() const;
  32. [[nodiscard]] ::std::shared_ptr<ls::std::core::interface_type::IReader> getReader() const;
  33. void setDocument(const ::std::shared_ptr<ls::std::io::SectionPairDocument> &_document);
  34. void setFileExistenceEvaluator(const ::std::shared_ptr<ls::std::core::interface_type::IEvaluator> &_fileExistenceEvaluator);
  35. void setFilePath(::std::string_view _filePath);
  36. void setReader(const ::std::shared_ptr<ls::std::core::interface_type::IReader> &_reader);
  37. private:
  38. ::std::shared_ptr<ls::std::io::SectionPairDocument> document{};
  39. ::std::shared_ptr<ls::std::core::interface_type::IEvaluator> fileExistenceEvaluator{};
  40. ::std::string filePath{};
  41. ::std::shared_ptr<ls::std::core::interface_type::IReader> reader{};
  42. };
  43. }
  44. #endif