SectionPairRowSingleValueValidator.hpp 1008 B

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