EmptyStringArgumentEvaluator.hpp 1.1 KB

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