/* * Author: Patrick-Christopher Mattulat * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2020-12-25 * Changed: 2023-02-08 * * */ #ifndef LS_STD_KV_PAIR_HPP #define LS_STD_KV_PAIR_HPP #include #include #include namespace ls::std::io { class LS_STD_DYNAMIC_GOAL KvPair : public ls::std::core::Class { public: explicit KvPair(const ls::std::core::type::kv_key &_key, ls::std::core::type::kv_value _value); ~KvPair() override; [[nodiscard]] ls::std::core::type::kv_key getKey(); [[nodiscard]] ls::std::core::type::kv_value getValue(); void setValue(const ls::std::core::type::kv_value &_value); private: ls::std::core::type::kv_key key{}; ls::std::core::type::kv_value value{}; void _assignKey(const ls::std::core::type::kv_key &_key); }; } #endif