ISerializable.hpp 665 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-21
  6. * Changed: 2023-02-05
  7. *
  8. * */
  9. #ifndef LS_STD_I_SERIALIZABLE_HPP
  10. #define LS_STD_I_SERIALIZABLE_HPP
  11. #include <ls-std/core/types/Types.hpp>
  12. #include <ls-std/os/dynamic-goal.hpp>
  13. namespace ls::std::core::interface_type
  14. {
  15. class LS_STD_DYNAMIC_GOAL ISerializable
  16. {
  17. public:
  18. ISerializable();
  19. virtual ~ISerializable();
  20. virtual ls::std::core::type::byte_field marshal() = 0;
  21. virtual void unmarshal(const ls::std::core::type::byte_field &_data) = 0;
  22. };
  23. }
  24. #endif