摘要: package test_namespace;message ChildMsg { message GrandSonMsg { optional string grandson = 1; } repeated GrandSonMsg grandson_msg ... 阅读全文
posted @ 2015-01-08 17:43 helloweworld 阅读(1382) 评论(0) 推荐(0) 编辑
摘要: 普通字段package test_namespace;message FatherMsg { repeated string father = 1; }#include #include #include #include "test.pb.h"using namespace std;i... 阅读全文
posted @ 2015-01-08 17:16 helloweworld 阅读(891) 评论(0) 推荐(0) 编辑
摘要: package test_namespace;message ChildMsg { optional string child = 1;}message FatherMsg { optional string father = 1; optional ChildMs... 阅读全文
posted @ 2015-01-08 16:24 helloweworld 阅读(1096) 评论(0) 推荐(1) 编辑
摘要: package pkg_flag; // message service的命名空间, 小写message MsgFlag { // MsgFlag是一个类, 驼峰 ... 阅读全文
posted @ 2015-01-08 16:14 helloweworld 阅读(350) 评论(0) 推荐(0) 编辑