Hi all,

I'm working on a project that involves two layers: one is written in C++ 
and the other one in Javascript. The C++ layer contains the model of the 
application in form of a tree in a similar way as HTML does (nothing really 
complicated, just elements with attributes).

The interaction between these two layers is done using JSON. We manually 
implement the classes that serialize/deserialize JSON requests/responses 
and it is becoming a waste of time (plus the impact in maintenance). I was 
thinking about using protocol buffers to describe our model in terms of 
.proto files and then write a layer that automatically performs the 
serialization/deserialization to/from JSON according to our schemas.

I started to look at protocol buffers recently so I might be asking 
something stupid. My question is: is protobuf the right choice to represent 
our data model when:

 1. the model consists of hierarchy of classes.
 2. a model instance is a tree (objects are connected creating a tree 
structure)
 3. the model not static: these tree suffer changes (tree operations like 
add/delete/move/update nodes, etc.)

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to