2 ms·
I use protobuf-generated RTTI for the purpose of doing endpoint SQL storage of the messages. (tables, columns, foreign keys, insert/select statements are all au
by nurettin 10y ago
I use protobuf-generated RTTI for the purpose of doing endpoint SQL storage of the messages. (tables, columns, foreign keys, insert/select statements are all auto-generated from the protobuf message) using C++.
Does capnproto provide similar RTTI information to walk through properties or recurse into other messages?
- kentonv 10y agoAbsolutely. I was the one who originally designed the Protobuf RTTI (aka "reflection") interface, after all... :) It's actually considerably easier to implement for Cap'n Proto since the in-memory objects are actually backed by byte buffers containing the wire format. No need to compute offsets of class members (which technically violates the C++ standard though it works on all compilers).