如何可视化来自谷歌协议缓冲区的数据?
我想使用 google 协议缓冲区存储数据(另一种序列化格式也可以),然后有一个 UI 来浏览该数据.是否有允许我这样做的 C++ 框架/API?
I would like to store data using google protocol buffers (another serialized format would work, too), and then have an UI to browse that data. Is there a C++ framework/API that would allow me to do this?
比如可以使用protobuf的反射接口,然后将数据填入Qt的QTableView(或者其他工具包).我可以自己编写这样的代码——然而,我更愿意重用现有的代码,这就是我在这里寻求建议的原因!
For example, it could use the reflection interface of protobuf, and then fill in the data into Qt's QTableView (or from another toolkit). I could write such code myself -- however, much rather I would re-use existing code, which is why I am asking for advice here!
或者是否有更通用的 UI 工具包可以可视化可通过某些反射 API 访问的数据?
Or are there more general UI toolkits that can visualize data which is accessible via some reflection API?
我刚刚遇到的一个 GUI 是 protobufeditor- 浏览通用数据似乎非常强大.它是用 Java 编写的,因此不能轻松地从 C++ 使用/扩展它.(而且在这一点上还没有特别完善,例如,需要最大化主窗口以获得子窗口的半有用布局.)所以这是一个相当临时的解决方案.
One GUI I just came across is protobufeditor -- it seems pretty powerful for browsing generic data. It is written in Java, so one cannot easily use/extend it from C++. (And it is not particularly polished at this point, e.g., one needs to maximize the main window to get a semi-useful layout of the sub-windows.) So this is a rather temporary solution.