如何可视化来自谷歌协议缓冲区的数据? [英] How to visualize data from google protocol buffer?

查看:37
本文介绍了如何可视化来自谷歌协议缓冲区的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 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.

这篇关于如何可视化来自谷歌协议缓冲区的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆