SectionPairFileReaderParameter.cpp 1.7 KB

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