KvPair.hpp 995 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-12-25
  6. * Changed: 2022-05-12
  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. namespace ls
  14. {
  15. namespace std
  16. {
  17. namespace io
  18. {
  19. class KvPair : public ls::std::core::Class
  20. {
  21. public:
  22. explicit KvPair(const ls::std::core::type::kv_key &_key, ls::std::core::type::kv_value _value);
  23. ~KvPair() override = default;
  24. ls::std::core::type::kv_key getKey();
  25. ls::std::core::type::kv_value getValue();
  26. void setValue(const ls::std::core::type::kv_value &_value);
  27. private:
  28. ls::std::core::type::kv_key key{};
  29. ls::std::core::type::kv_value value{};
  30. void _assignKey(const ls::std::core::type::kv_key &_key);
  31. };
  32. }
  33. }
  34. }
  35. #endif