SectionPairFileReaderParameter.hpp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Co-Author: Claude Sonnet 4.6 (LLM)
  4. * Company: Lynar Studios
  5. * E-Mail: webmaster@lynarstudios.com
  6. * Created: 2023-02-21
  7. * Changed: 2026-06-23
  8. *
  9. * */
  10. #ifndef LS_STD_SECTION_PAIR_FILE_READER_PARAMETER_HPP
  11. #define LS_STD_SECTION_PAIR_FILE_READER_PARAMETER_HPP
  12. #include <ls-std/core/interface/IEvaluator.hpp>
  13. #include <ls-std/core/interface/IReader.hpp>
  14. #include <ls-std/io/section-pair/model/SectionPairDocument.hpp>
  15. #include <ls-std/os/dynamic-goal.hpp>
  16. #include <memory>
  17. #include <string>
  18. #include <string_view>
  19. /*
  20. * @doc: class(name: 'SectionPairFileReaderParameter', package: 'io')
  21. * @doc: io.SectionPairFileReaderParameter.description('This class holds evaluators and the document instance for Section Pair file reading.')
  22. * */
  23. namespace ls::standard::io
  24. {
  25. class LS_STD_DYNAMIC_GOAL SectionPairFileReaderParameter
  26. {
  27. public:
  28. SectionPairFileReaderParameter();
  29. ~SectionPairFileReaderParameter();
  30. [[nodiscard]] ::std::shared_ptr<ls::standard::io::SectionPairDocument> getDocument() const;
  31. [[nodiscard]] ::std::shared_ptr<ls::standard::core::interface_type::IEvaluator> getFileExistenceEvaluator() const;
  32. [[nodiscard]] ::std::string getFilePath() const;
  33. [[nodiscard]] ::std::shared_ptr<ls::standard::core::interface_type::IReader> getReader() const;
  34. void setDocument(const ::std::shared_ptr<ls::standard::io::SectionPairDocument> &_document);
  35. void setFileExistenceEvaluator(const ::std::shared_ptr<ls::standard::core::interface_type::IEvaluator> &_fileExistenceEvaluator);
  36. void setFilePath(::std::string_view _filePath);
  37. void setReader(const ::std::shared_ptr<ls::standard::core::interface_type::IReader> &_reader);
  38. private:
  39. ::std::shared_ptr<ls::standard::io::SectionPairDocument> document{};
  40. ::std::shared_ptr<ls::standard::core::interface_type::IEvaluator> fileExistenceEvaluator{};
  41. ::std::string filePath{};
  42. ::std::shared_ptr<ls::standard::core::interface_type::IReader> reader{};
  43. };
  44. }
  45. #endif