ISerializable.hpp 568 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-06
  7. *
  8. * */
  9. #ifndef LS_STD_SERIALIZABLE_HPP
  10. #define LS_STD_SERIALIZABLE_HPP
  11. #include "../../../include/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