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

#ifndef LS_STD_NULL_POINTER_ARGUMENT_EVALUATOR_HPP
#define LS_STD_NULL_POINTER_ARGUMENT_EVALUATOR_HPP

#include <ls-std/core/interface/IEvaluator.hpp>
#include <ls-std/core/type/RawPointer.hpp>
#include <ls-std/os/dynamic-goal.hpp>
#include <memory>
#include <string>

/*
 * @doc: class(name: 'NullPointerArgumentEvaluator', package: 'core')
 * @doc: core.NullPointerArgumentEvaluator.description('This class evaluates whether a passed shared pointer argument is null.')
 * */

namespace ls::standard::core
{
  class LS_STD_DYNAMIC_GOAL NullPointerArgumentEvaluator : public ls::standard::core::interface_type::IEvaluator
  {
    public:

      explicit NullPointerArgumentEvaluator(const ::std::shared_ptr<void> &_argument);
      explicit NullPointerArgumentEvaluator(const ::std::shared_ptr<void> &_argument, ::std::string _message);
      ~NullPointerArgumentEvaluator() noexcept override;

      void evaluate() override;

    private:

      ::std::shared_ptr<void> argument{};
      ::std::string message{};
  };
}

#endif
