25 #define ARILES2_VISITOR_INCLUDED_protobuf3
34 namespace ns_protobuf3
41 #define ARILES2_NAMED_ENTRY_protobuf3_write(v, entry, name) other.set_##name(entry);
42 #define ARILES2_NAMED_ENTRY_protobuf3_read(v, entry, name) \
43 visitor.visitMapEntry(entry, other.name(), #name, parameters);
44 #define ARILES2_PARENT_protobuf3_write(v, entry) entry::arilesVisit(visitor, other, parameters);
45 #define ARILES2_PARENT_protobuf3_read(v, entry) entry::arilesVisit(visitor, other, parameters);
48 #define ARILES2_VISIT_protobuf3 \
49 template <class t_Other> \
51 ariles2::protobuf3::Writer &visitor, \
53 const typename ariles2::protobuf3::Writer::Parameters ¶meters) const \
55 CPPUT_UNUSED_ARG(visitor); \
56 CPPUT_UNUSED_ARG(other); \
57 CPPUT_UNUSED_ARG(parameters); \
58 CPPUT_TRACE_FUNCTION; \
59 ARILES2_ENTRIES(protobuf3_write) \
61 template <class t_Other> \
63 ariles2::protobuf3::Reader &visitor, \
64 const t_Other &other, \
65 const typename ariles2::protobuf3::Reader::Parameters ¶meters) \
67 CPPUT_UNUSED_ARG(visitor); \
68 CPPUT_UNUSED_ARG(other); \
69 CPPUT_UNUSED_ARG(parameters); \
70 CPPUT_TRACE_FUNCTION; \
71 ARILES2_ENTRIES(protobuf3_read) \
75 #define ARILES2_METHODS_protobuf3 \
76 const ariles2::protobuf3::Writer::Parameters &arilesGetParameters(const ariles2::protobuf3::Writer &visitor) const \
78 CPPUT_TRACE_FUNCTION; \
79 return (visitor.getDefaultParameters()); \
81 const ariles2::protobuf3::Reader::Parameters &arilesGetParameters(const ariles2::protobuf3::Reader &visitor) const \
83 CPPUT_TRACE_FUNCTION; \
84 return (visitor.getDefaultParameters()); \
87 #define ARILES2_BASE_METHODS_protobuf3
entry::ConstBase< const Visitor > Base
GenericWriter< NameValuePair > Writer