Specialization point that exposes a C++ event type over the C# FFI via protobuf.
More...
template<typename T>
struct event::ProtoTraits< T >
Specialization point that exposes a C++ event type over the C# FFI via protobuf.
Specialize this template next to your ProtoTraits and use TOAST_PROTO_EVENT() to register it. The specialization must define:
- using Proto: the generated protobuf message type
- using Event: the C++ event type (usually the same as T)
- toProto(const T&): converts a C++ event to its protobuf form for serialization
- fromProto(const Proto&): reconstructs a C++ event from its protobuf form
- Template Parameters
-
| T | The C++ event type; must also satisfy ExposedEvent after specialization |
- See also
- ExposedEvent, TOAST_PROTO_EVENT
The documentation for this struct was generated from the following file: