SectionPairRowSingleValueValidator.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Co-Author: Claude Sonnet 4.6 (LLM)
  4. * Company: Lynar Studios
  5. * E-Mail: webmaster@lynarstudios.com
  6. * Created: 2023-02-19
  7. * Changed: 2026-06-23
  8. *
  9. * */
  10. #ifndef LS_STD_SECTION_PAIR_ROW_SINGLE_VALUE_VALIDATOR_HPP
  11. #define LS_STD_SECTION_PAIR_ROW_SINGLE_VALUE_VALIDATOR_HPP
  12. #include <ls-std/core/Class.hpp>
  13. #include <ls-std/core/interface/IValidator.hpp>
  14. #include <ls-std/os/dynamic-goal.hpp>
  15. /*
  16. * @doc: class(name: 'SectionPairRowSingleValueValidator', package: 'io')
  17. * @doc: io.SectionPairRowSingleValueValidator.description('This validator checks whether a content is a valid Section Pair row single value.')
  18. * */
  19. namespace ls::standard::io
  20. {
  21. class LS_STD_DYNAMIC_GOAL SectionPairRowSingleValueValidator : public ls::standard::core::Class, public ls::standard::core::interface_type::IValidator
  22. {
  23. public:
  24. explicit SectionPairRowSingleValueValidator(::std::string _singleValueRow);
  25. ~SectionPairRowSingleValueValidator() noexcept override;
  26. [[nodiscard]] static ::std::string getValidationRegex();
  27. [[nodiscard]] bool isValid() override;
  28. private:
  29. ::std::string singleValueRow{};
  30. [[nodiscard]] static ::std::string _getValidationRegex();
  31. };
  32. }
  33. #endif