IStorable.hpp 709 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-19
  6. * Changed: 2022-05-16
  7. *
  8. * */
  9. #ifndef LS_STD_I_STORABLE_HPP
  10. #define LS_STD_I_STORABLE_HPP
  11. #include <ls_std/core/types/Types.hpp>
  12. namespace ls
  13. {
  14. namespace std
  15. {
  16. namespace core
  17. {
  18. namespace interface
  19. {
  20. class IStorable
  21. {
  22. public:
  23. IStorable() = default;
  24. ~IStorable() = default;
  25. virtual ls::std::core::type::byte_field load() = 0;
  26. virtual void save(const ls::std::core::type::byte_field &_data) = 0;
  27. };
  28. }
  29. }
  30. }
  31. }
  32. #endif