SectionPairRowSingleValueValidator.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-19
  6. * Changed: 2024-09-09
  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. /*
  15. * @doc: class(name: 'SectionPairRowSingleValueValidator', package: 'io')
  16. * */
  17. namespace ls::std::io
  18. {
  19. class LS_STD_DYNAMIC_GOAL SectionPairRowSingleValueValidator : public ls::std::core::Class, public ls::std::core::interface_type::IValidator
  20. {
  21. public:
  22. explicit SectionPairRowSingleValueValidator(::std::string _singleValueRow);
  23. ~SectionPairRowSingleValueValidator() noexcept override;
  24. [[nodiscard]] static ::std::string getValidationRegex();
  25. [[nodiscard]] bool isValid() override;
  26. private:
  27. ::std::string singleValueRow{};
  28. [[nodiscard]] static ::std::string _getValidationRegex();
  29. };
  30. }
  31. #endif