PROTOCOLBUFFERS

Protocol Buffersを試す

C++でProtocol Buffersを使ってみる。「整数のx,y座標を持つPoint型」を定義する。 // point.proto package Test; message Point { optional int32 x = 1; optional int32 y = 2; }これを元にC++用のファイルを作ってもらう。 % protoc --cpp_out=. point.pr…

Protocol Buffers

http://www.atmarkit.co.jp/news/200807/08/pbuff.htmlものすごくタイムリーに使えそうな話。急いで調べる。[追記]Cバインディングがないのが残念。小規模な組み込み用途で使えると楽しそうなんだが。とりあえずVC++2008とlinuxでの動作を確認。