12345678910111213141516171819202122232425262728293031323334353637383940 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-02-21
- * Changed: 2024-09-13
- *
- * */
- #ifndef LS_STD_FILE_EXISTENCE_EVALUATOR_HPP
- #define LS_STD_FILE_EXISTENCE_EVALUATOR_HPP
- #include <ls-std/core/Class.hpp>
- #include <ls-std/core/interface/IEvaluator.hpp>
- #include <ls-std/os/dynamic-goal.hpp>
- #include <string>
- /*
- * @doc: class(name: 'FileExistenceEvaluator', package: 'io')
- * @doc: io.FileExistenceEvaluator.description('This class evaluates whether a file exists and throws an exception in case it does not.')
- * */
- namespace ls::std::io
- {
- class LS_STD_DYNAMIC_GOAL FileExistenceEvaluator : public ls::std::core::Class, public ls::std::core::interface_type::IEvaluator
- {
- public:
- explicit FileExistenceEvaluator(::std::string _filePath);
- ~FileExistenceEvaluator() noexcept override;
- void evaluate() override;
- private:
- ::std::string filePath{};
- };
- }
- #endif
|