MockFileExistenceEvaluator.hpp 727 B

123456789101112131415161718192021222324252627282930313233
  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. #ifndef LS_STD_MOCK_FILE_EXISTENCE_EVALUATOR_HPP
  10. #define LS_STD_MOCK_FILE_EXISTENCE_EVALUATOR_HPP
  11. #include <ls-std/core/Class.hpp>
  12. #include <ls-std/core/interface/IEvaluator.hpp>
  13. namespace test::io
  14. {
  15. class MockFileExistenceEvaluator : public ls::std::core::Class, public ls::std::core::interface_type::IEvaluator
  16. {
  17. public:
  18. explicit MockFileExistenceEvaluator(bool _fileExists);
  19. ~MockFileExistenceEvaluator() override;
  20. void evaluate() override;
  21. private:
  22. bool fileExists{};
  23. };
  24. }
  25. #endif