SectionPairFileReaderParameter.cpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. #include <ls-std/io/section-pair/reader/SectionPairFileReaderParameter.hpp>
  10. using ls::std::core::interface_type::IEvaluator;
  11. using ls::std::core::interface_type::IReader;
  12. using ls::std::io::SectionPairDocument;
  13. using ls::std::io::SectionPairFileReaderParameter;
  14. using std::shared_ptr;
  15. using std::string;
  16. using std::string_view;
  17. SectionPairFileReaderParameter::SectionPairFileReaderParameter() = default;
  18. SectionPairFileReaderParameter::~SectionPairFileReaderParameter() = default;
  19. shared_ptr<SectionPairDocument> SectionPairFileReaderParameter::getDocument() const
  20. {
  21. return this->document;
  22. }
  23. shared_ptr<IEvaluator> SectionPairFileReaderParameter::getFileExistenceEvaluator() const
  24. {
  25. return this->fileExistenceEvaluator;
  26. }
  27. string SectionPairFileReaderParameter::getFilePath() const
  28. {
  29. return this->filePath;
  30. }
  31. shared_ptr<IReader> SectionPairFileReaderParameter::getReader() const
  32. {
  33. return this->reader;
  34. }
  35. void SectionPairFileReaderParameter::setDocument(const shared_ptr<SectionPairDocument> &_document)
  36. {
  37. this->document = _document;
  38. }
  39. void SectionPairFileReaderParameter::setFileExistenceEvaluator(const shared_ptr<IEvaluator> &_fileExistenceEvaluator)
  40. {
  41. this->fileExistenceEvaluator = _fileExistenceEvaluator;
  42. }
  43. void SectionPairFileReaderParameter::setFilePath(string_view _filePath)
  44. {
  45. this->filePath = _filePath;
  46. }
  47. void SectionPairFileReaderParameter::setReader(const shared_ptr<IReader> &_reader)
  48. {
  49. this->reader = _reader;
  50. }