/*
* Author:          Patrick-Christopher Mattulat
* Co-Author:       Claude Sonnet 4.6 (LLM)
* Company:         Lynar Studios
* E-Mail:          webmaster@lynarstudios.com
* Created:         2023-02-21
* Changed:         2026-06-23
*
* */

#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::standard::io
{
  class LS_STD_DYNAMIC_GOAL FileExistenceEvaluator : public ls::standard::core::Class, public ls::standard::core::interface_type::IEvaluator
  {
    public:

      explicit FileExistenceEvaluator(::std::string _filePath);
      ~FileExistenceEvaluator() noexcept override;

      void evaluate() override;

    private:

      ::std::string filePath{};
  };
}

#endif
