/* * Author: Patrick-Christopher Mattulat * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2023-02-19 * Changed: 2023-02-22 * * */ #include #include #include #include ls::std::io::SectionPairRowSingleValueArgumentEvaluator::SectionPairRowSingleValueArgumentEvaluator(::std::string _singleValueRow) : ls::std::core::Class("SectionPairRowSingleValueArgumentEvaluator"), singleValueRow(::std::move(_singleValueRow)) {} ls::std::io::SectionPairRowSingleValueArgumentEvaluator::~SectionPairRowSingleValueArgumentEvaluator() noexcept = default; void ls::std::io::SectionPairRowSingleValueArgumentEvaluator::evaluate() { if (!ls::std::io::SectionPairRowSingleValueValidator{this->singleValueRow}.isValid()) { ::std::string message = "\"" + this->singleValueRow + "\" is not a valid section pair single value row!"; throw ls::std::core::IllegalArgumentException{ls::std::io::SectionPairMessageFormatter::getFormattedMessage(message)}; } }