/* * Author: Patrick-Christopher Mattulat * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2023-02-08 * Changed: 2023-02-10 * * */ #include #include #include ls::std::io::SectionPairRow::SectionPairRow(const ls::std::io::section_pair_identifier &_key) : ls::std::core::Class("SectionPairRow") { ls::std::core::EmptyStringArgumentEvaluator{_key, "passed key identifier for section pair row is empty!"}.evaluate(); ls::std::io::SectionPairIdentifierArgumentEvaluator(_key, "section pair key identifier \"" + _key + "\" contains invalid characters!").evaluate(); this->key = _key; } ls::std::io::SectionPairRow::~SectionPairRow() = default; ls::std::io::section_pair_row_value ls::std::io::SectionPairRow::getKey() { return this->key; } bool ls::std::io::SectionPairRow::isList() { return this->type == ls::std::io::SectionPairRowEnumType::SECTION_PAIR_ROW_LIST; } bool ls::std::io::SectionPairRow::isSingleValue() { return this->type == ls::std::io::SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE; }