CODE 项目整体迁移至码云平台(https://gitee.com)公告
冬瓜猫 / protobuf_tools C++

因为工作需要分析protobuf的数据,google了一下,我个人没有找到合适的,就参考google protobuf文档,写了一个分析工具。这个项目用的是C++Builder XE10.2, win64实现。

c++builder protobuf
拷贝地址

项目最近一次提交:3 个月 前 982bc8506

4_zdhsoft 冬瓜猫 Merge branch 'master' of code.csdn.net:zdhsoft/protobuf_tools 2017-08-19 21:29:23
文件 70行 1.9 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
//---------------------------------------------------------------------------

#ifndef mainFrmH
#define mainFrmH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <System.ImageList.hpp>
#include <Vcl.ComCtrls.hpp>
#include <Vcl.ImgList.hpp>
#include <Vcl.ToolWin.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.Dialogs.hpp>
#include "protoitem.h"
#include <System.Actions.hpp>
#include <Vcl.ActnList.hpp>
#include <Vcl.Menus.hpp>
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published: // IDE-managed Components
TToolBar *ToolBar1;
TToolButton *ToolButton1;
TImageList *ImageList1;
TTreeView *TreeView1;
TSplitter *Splitter1;
TMemo *Memo1;
TOpenDialog *OpenDialog1;
TImageList *ImageList2;
TPopupMenu *PopupMenu1;
TActionList *ActionList1;
TAction *ActionSetInt32;
TAction *ActionSetInt64;
TAction *ActionUint32;
TAction *ActionUint64;
TAction *ActionString;
TMenuItem *Int321;
TMenuItem *Int641;
TMenuItem *N1;
TMenuItem *Uint321;
TMenuItem *UInt641;
TAction *ActionData;
TAction *ActionBinary;
TAction *ActionDouble;
TAction *ActionFloat;
TMenuItem *N2;
TMenuItem *N3;
TMenuItem *double1;
TMenuItem *Float1;
TAction *ActionHex64;
TAction *ActionHex32;
TMenuItem *N321;
TMenuItem *N641;
void __fastcall ToolButton1Click(TObject *Sender);
void __fastcall PopupMenu1Popup(TObject *Sender);
void __fastcall ActionSetInt32Execute(TObject *Sender);
private: // User declarations
zdh::XByteBuffer m_Buff;
zdh::ProtoItem m_Item;
int m_ID = 0;
public: // User declarations
__fastcall TfrmMain(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif