12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-02-20
- * Changed: 2024-09-13
- *
- * */
- #ifndef LS_STD_SECTION_PAIR_ROW_VALIDATOR_HPP
- #define LS_STD_SECTION_PAIR_ROW_VALIDATOR_HPP
- #include <ls-std/core/Class.hpp>
- #include <ls-std/core/interface/IValidator.hpp>
- #include <ls-std/os/dynamic-goal.hpp>
- #include <string>
- /*
- * @doc: class(name: 'SectionPairRowValidator', package: 'io')
- * @doc: io.SectionPairRowValidator.description('This validator checks whether a content is a valid Section Pair row.')
- * */
- namespace ls::std::io
- {
- class LS_STD_DYNAMIC_GOAL SectionPairRowValidator : public ls::std::core::Class, public ls::std::core::interface_type::IValidator
- {
- public:
- explicit SectionPairRowValidator(::std::string _row);
- ~SectionPairRowValidator() noexcept override;
- [[nodiscard]] static ::std::string getValidationRegex();
- [[nodiscard]] bool isValid() override;
- private:
- ::std::string row{};
- [[nodiscard]] static ::std::string _getValidationRegex();
- };
- }
- #endif
|