SectionPairRowValidator.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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-20
  7. * Changed: 2026-06-23
  8. *
  9. * */
  10. #ifndef LS_STD_SECTION_PAIR_ROW_VALIDATOR_HPP
  11. #define LS_STD_SECTION_PAIR_ROW_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. #include <string>
  16. /*
  17. * @doc: class(name: 'SectionPairRowValidator', package: 'io')
  18. * @doc: io.SectionPairRowValidator.description('This validator checks whether a content is a valid Section Pair row.')
  19. * */
  20. namespace ls::standard::io
  21. {
  22. class LS_STD_DYNAMIC_GOAL SectionPairRowValidator : public ls::standard::core::Class, public ls::standard::core::interface_type::IValidator
  23. {
  24. public:
  25. explicit SectionPairRowValidator(::std::string _row);
  26. ~SectionPairRowValidator() noexcept override;
  27. [[nodiscard]] static ::std::string getValidationRegex();
  28. [[nodiscard]] bool isValid() override;
  29. private:
  30. ::std::string row{};
  31. [[nodiscard]] static ::std::string _getValidationRegex();
  32. };
  33. }
  34. #endif