ISerializable.hpp 558 B

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