ISerializable.hpp 615 B

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