KvPair.hpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-12-25
  6. * Changed: 2022-07-03
  7. *
  8. * */
  9. #ifndef LS_STD_KV_PAIR_HPP
  10. #define LS_STD_KV_PAIR_HPP
  11. #include <ls_std/core/Class.hpp>
  12. #include "ls_std/core/types/KvTypes.hpp"
  13. #include <ls_std/os/dynamic_goal.hpp>
  14. namespace ls
  15. {
  16. namespace std
  17. {
  18. namespace io
  19. {
  20. class LS_STD_DYNAMIC_GOAL KvPair : public ls::std::core::Class
  21. {
  22. public:
  23. explicit KvPair(const ls::std::core::type::kv_key &_key, ls::std::core::type::kv_value _value);
  24. ~KvPair() override = default;
  25. ls::std::core::type::kv_key getKey();
  26. ls::std::core::type::kv_value getValue();
  27. void setValue(const ls::std::core::type::kv_value &_value);
  28. private:
  29. ls::std::core::type::kv_key key{};
  30. ls::std::core::type::kv_value value{};
  31. void _assignKey(const ls::std::core::type::kv_key &_key);
  32. };
  33. }
  34. }
  35. }
  36. #endif