MathOddValidator.hpp 524 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-13
  6. * Changed: 2023-02-23
  7. *
  8. * */
  9. #ifndef LS_STD_MATH_ODD_VALIDATOR_HPP
  10. #define LS_STD_MATH_ODD_VALIDATOR_HPP
  11. namespace test::core
  12. {
  13. class MathOddValidator
  14. {
  15. public:
  16. MathOddValidator();
  17. ~MathOddValidator();
  18. [[nodiscard]] bool isOdd() const;
  19. void validate(int _number);
  20. private:
  21. bool isOddNumber{};
  22. };
  23. }
  24. #endif