/*
* Author:          Patrick-Christopher Mattulat
* Co-Author:       Claude Sonnet 4.6 (LLM)
* Company:         Lynar Studios
* E-Mail:          webmaster@lynarstudios.com
* Created:         2023-02-09
* Changed:         2026-06-23
*
* */

#ifndef LS_STD_SECTION_PAIR_VALUE_VALIDATOR_HPP
#define LS_STD_SECTION_PAIR_VALUE_VALIDATOR_HPP

#include <ls-std/core/Class.hpp>
#include <ls-std/core/interface/IValidator.hpp>
#include <ls-std/io/section-pair/SectionPairTypes.hpp>
#include <ls-std/os/dynamic-goal.hpp>
#include <string>

/*
 * @doc: class(name: 'SectionPairValueValidator', package: 'io')
 * @doc: io.SectionPairValueValidator.description('This validator checks whether a content is a valid Section Pair value.')
 * */

namespace ls::standard::io
{
  class LS_STD_DYNAMIC_GOAL SectionPairValueValidator : public ls::standard::core::Class, public ls::standard::core::interface_type::IValidator
  {
    public:

      explicit SectionPairValueValidator(ls::standard::io::section_pair_row_value _value);
      ~SectionPairValueValidator() noexcept override;

      [[nodiscard]] static ::std::string getValidationRegex();
      [[nodiscard]] bool isValid() override;

    private:

      ls::standard::io::section_pair_row_value value{};

      [[nodiscard]] static ::std::string _getValidationRegex();
  };
}

#endif
