2 #include <score/serialization/IsTemplate.hpp>
12 template <
typename Serializer_T,
typename T,
typename Enable =
void>
15 using SerializationIdentifier = int;
28 const SerializationIdentifier identifier;
35 template <
typename DeserializerVisitor>
36 concept IsDeserializer = std::decay_t<DeserializerVisitor>::is_visitor_tag::value;
39 #define SCORE_SERIALIZE_FRIENDS \
40 friend class ::DataStreamReader; \
41 friend class ::DataStreamWriter; \
42 friend class ::JSONReader; \
43 friend class ::JSONWriter;
57 static constexpr SerializationIdentifier type() {
return 2; }
65 static constexpr SerializationIdentifier type() {
return 1; }
Definition: VisitorInterface.hpp:10
Definition: VisitorInterface.hpp:53
Definition: DataStreamVisitor.hpp:27
Definition: DataStreamVisitor.hpp:202
Definition: VisitorInterface.hpp:61
Definition: JSONVisitor.hpp:52
Definition: JSONVisitor.hpp:423
Definition: VisitorInterface.hpp:13
The VisitorVariant struct.
Definition: VisitorInterface.hpp:26