| 12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Co-Author: Claude Sonnet 4.6 (LLM)
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-02-20
- * Changed: 2026-06-23
- *
- * */
- #include <ls-std/core/exception/IllegalArgumentException.hpp>
- #include <ls-std/io/section-pair/SectionPairMessageFormatter.hpp>
- #include <ls-std/io/section-pair/evaluator/SectionPairRowArgumentEvaluator.hpp>
- #include <ls-std/io/section-pair/validator/SectionPairRowValidator.hpp>
- #include <string>
- using ls::standard::core::Class;
- using ls::standard::core::IllegalArgumentException;
- using ls::standard::io::SectionPairMessageFormatter;
- using ls::standard::io::SectionPairRowArgumentEvaluator;
- using ls::standard::io::SectionPairRowValidator;
- using std::move;
- using std::string;
- SectionPairRowArgumentEvaluator::SectionPairRowArgumentEvaluator(string _sectionPairRow) : Class("SectionPairRowArgumentEvaluator"), sectionPairRow(::move(_sectionPairRow))
- {}
- SectionPairRowArgumentEvaluator::~SectionPairRowArgumentEvaluator() noexcept = default;
- void SectionPairRowArgumentEvaluator::evaluate()
- {
- if (!SectionPairRowValidator{this->sectionPairRow}.isValid())
- {
- const string message = "\"" + this->sectionPairRow + "\" is not a valid section pair row!";
- throw IllegalArgumentException{SectionPairMessageFormatter::getFormattedMessage(message)};
- }
- }
|