NullPointerArgumentEvaluator.hpp 1009 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-08
  6. * Changed: 2023-05-23
  7. *
  8. * */
  9. #ifndef LS_STD_NULL_POINTER_ARGUMENT_EVALUATOR_HPP
  10. #define LS_STD_NULL_POINTER_ARGUMENT_EVALUATOR_HPP
  11. #include <ls-std/core/interface/IEvaluator.hpp>
  12. #include <ls-std/core/type/RawPointer.hpp>
  13. #include <ls-std/os/dynamic-goal.hpp>
  14. #include <memory>
  15. #include <string>
  16. namespace ls::std::core
  17. {
  18. class LS_STD_DYNAMIC_GOAL NullPointerArgumentEvaluator : public ls::std::core::interface_type::IEvaluator
  19. {
  20. public:
  21. explicit NullPointerArgumentEvaluator(const ::std::shared_ptr<void> &_argument);
  22. explicit NullPointerArgumentEvaluator(const ::std::shared_ptr<void> &_argument, ::std::string _message);
  23. ~NullPointerArgumentEvaluator() noexcept override;
  24. void evaluate() override;
  25. private:
  26. ::std::shared_ptr<void> argument{};
  27. ::std::string message{};
  28. };
  29. }
  30. #endif