SectionPairFileReaderParameter.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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-23
  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. SectionPairFileReaderParameter::SectionPairFileReaderParameter() = default;
  17. SectionPairFileReaderParameter::~SectionPairFileReaderParameter() = default;
  18. shared_ptr<SectionPairDocument> SectionPairFileReaderParameter::getDocument()
  19. {
  20. return this->document;
  21. }
  22. shared_ptr<IEvaluator> SectionPairFileReaderParameter::getFileExistenceEvaluator()
  23. {
  24. return this->fileExistenceEvaluator;
  25. }
  26. string SectionPairFileReaderParameter::getFilePath()
  27. {
  28. return this->filePath;
  29. }
  30. shared_ptr<IReader> SectionPairFileReaderParameter::getReader()
  31. {
  32. return this->reader;
  33. }
  34. void SectionPairFileReaderParameter::setDocument(const shared_ptr<SectionPairDocument> &_document)
  35. {
  36. this->document = _document;
  37. }
  38. void SectionPairFileReaderParameter::setFileExistenceEvaluator(const shared_ptr<IEvaluator> &_fileExistenceEvaluator)
  39. {
  40. this->fileExistenceEvaluator = _fileExistenceEvaluator;
  41. }
  42. void SectionPairFileReaderParameter::setFilePath(const string &_filePath)
  43. {
  44. this->filePath = _filePath;
  45. }
  46. void SectionPairFileReaderParameter::setReader(const shared_ptr<IReader> &_reader)
  47. {
  48. this->reader = _reader;
  49. }