MathOddValidator.hpp 565 B

1234567891011121314151617181920212223242526272829303132
  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-13
  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 isEven() const;
  19. [[nodiscard]] bool isOdd() const;
  20. void validate(int _number);
  21. private:
  22. bool isOddNumber{};
  23. };
  24. }
  25. #endif