Go to the documentation of this file.
30 template <
class TProto>
42 template <
class TProto>
90 #define FARM_PROTO_CONV_TRAIT(TCpp, TProto) \
92 struct ToProtoTrait<TCpp> { \
93 using ProtoType = TProto; \
96 struct FromProtoTrait<TProto> { \
97 using CppType = TCpp; \
100 auto fromProt<TProto>(TProto const& proto)->Expected<TCpp>; \
103 auto toProt<TCpp>(TCpp const& cpp)->TProto
Definition: backtrace.cpp:102
core::proto::Uri toProt(Uri const &uri)
Definition: conv.cpp:27
Trait to associate one concrete Cpp type with given proto type TProto.
Definition: proto_conv.h:31
auto fromProt(core::proto::Uri const &proto) -> Expected< Uri >
Definition: conv.cpp:22
Trait to associate one concrete Proto type with given C++ type TCpp.
Definition: proto_conv.h:25
tl::expected< TT, TE > Expected
Definition: expected.h:37