SectionPairValueValidator.hpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-09
  6. * Changed: 2023-02-19
  7. *
  8. * */
  9. #ifndef LS_STD_SECTION_PAIR_VALUE_VALIDATOR_HPP
  10. #define LS_STD_SECTION_PAIR_VALUE_VALIDATOR_HPP
  11. #include <ls-std/core/Class.hpp>
  12. #include <ls-std/core/interface/IValidator.hpp>
  13. #include <ls-std/io/section-pair/SectionPairTypes.hpp>
  14. #include <ls-std/os/dynamic-goal.hpp>
  15. #include <string>
  16. namespace ls::std::io
  17. {
  18. class LS_STD_DYNAMIC_GOAL SectionPairValueValidator : public ls::std::core::Class, public ls::std::core::interface_type::IValidator
  19. {
  20. public:
  21. explicit SectionPairValueValidator(ls::std::io::section_pair_row_value _value);
  22. ~SectionPairValueValidator() override;
  23. [[nodiscard]] static ::std::string getValidationRegex();
  24. [[nodiscard]] bool isValid() override;
  25. private:
  26. ls::std::io::section_pair_row_value value{};
  27. [[nodiscard]] static ::std::string _getValidationRegex();
  28. };
  29. }
  30. #endif