EmptyStringArgumentEvaluator.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Co-Author: Claude Sonnet 4.6 (LLM)
  4. * Company: Lynar Studios
  5. * E-Mail: webmaster@lynarstudios.com
  6. * Created: 2023-02-08
  7. * Changed: 2026-06-23
  8. *
  9. * */
  10. #ifndef LS_STD_EMPTY_STRING_ARGUMENT_EVALUATOR_HPP
  11. #define LS_STD_EMPTY_STRING_ARGUMENT_EVALUATOR_HPP
  12. #include <ls-std/core/interface/IEvaluator.hpp>
  13. #include <ls-std/os/dynamic-goal.hpp>
  14. #include <string>
  15. /*
  16. * @doc: class(name: 'EmptyStringArgumentEvaluator', package: 'core')
  17. * @doc: core.EmptyStringArgumentEvaluator.description('This class evaluates whether a passed string is empty.')
  18. * */
  19. namespace ls::standard::core
  20. {
  21. class LS_STD_DYNAMIC_GOAL EmptyStringArgumentEvaluator : public ls::standard::core::interface_type::IEvaluator
  22. {
  23. public:
  24. explicit EmptyStringArgumentEvaluator(::std::string _argument);
  25. explicit EmptyStringArgumentEvaluator(::std::string _argument, ::std::string _message);
  26. ~EmptyStringArgumentEvaluator() noexcept override;
  27. void evaluate() override;
  28. private:
  29. ::std::string argument{};
  30. ::std::string message{};
  31. };
  32. }
  33. #endif