/* * Author: Patrick-Christopher Mattulat * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2023-02-08 * Changed: 2023-02-10 * * */ #ifndef LS_STD_SECTION_PAIR_ROW_HPP #define LS_STD_SECTION_PAIR_ROW_HPP #include "SectionPairRowEnumType.hpp" #include "SectionPairTypes.hpp" #include #include #include namespace ls::std::io { class LS_STD_DYNAMIC_GOAL SectionPairRow : public ls::std::core::Class { public: explicit SectionPairRow(const ls::std::io::section_pair_identifier &_key); ~SectionPairRow() override; [[nodiscard]] ls::std::io::section_pair_identifier getKey(); [[nodiscard]] ls::std::io::section_pair_row_value getValue(); [[nodiscard]] bool isKeyValue(); [[nodiscard]] bool isList(); void setValue(const ls::std::io::section_pair_row_value &_value); private: ls::std::io::section_pair_identifier key{}; ls::std::io::SectionPairRowEnumType type{}; ::std::list values{}; void _setType(const ls::std::io::SectionPairRowEnumType &_type); void _setValue(const ls::std::io::section_pair_row_value &_value); }; } #endif