[protobuf] Filtering/Query Support for Protocol Buffer

2012-06-01 Thread Shail
I am exploring the protocol buffer. I have come across the scenario where i need to filter the records of the message stored in binary file with respect to field value. My message structure is : message Person { required string name = 1; required int32 id = 2;// Unique ID number for th

[protobuf] Re: Filtering/Query Support for Protocol Buffer

2012-06-03 Thread Shail
with protocol buffer for filtering support? Shailendra On Jun 1, 10:02 pm, Pavel Shramov wrote: > On Fri, Jun 01, 2012 at 12:05:58AM -0700, Shail wrote: > > Does protocol buffer provide support like "SQL query/XPath query" to > > retrieve the selective data from binary fi

[protobuf] Serialization of existing XML Type

2012-07-29 Thread Shail
As part of using protocol buffer .Net, I Came across that any XMLType can be directly serilaized, My sample XML Type is : [XmlType] public class Movie { [XmlElement("MovieNameValue", Order = 0)] public string MovieName; [XmlElement("MovieNameValue", Order

Re: [protobuf] Serialization of existing XML Type

2012-07-29 Thread Shail
a attributes; for example (during > your apps startup): > > RuntimeTypeModel.Default.Add(typeof(Movie), false).Add("MovieName", > "MovieDir", "TheatersCount"); > > (that is just a very basic usage; there are much more subtle configuration > option

[protobuf] Serialization of Object type without modifying C# class generated out of schema

2012-07-31 Thread Shail
Hi, I have an existing C# class which is generated out of XML schema, it contains the object type. I need to serialize same using protocol buffer, without modifying the class, I am having issue in serialization of the object datatype present in the class as mentioned below: public class Para

Re: [protobuf] Serialization of Object type without modifying C# class generated out of schema

2012-07-31 Thread Shail
1:01 UTC+5:30, Marc Gravell wrote: > > And in this model, what is FloatData, StringData, IntData, etc? > > This is certainly solvable with protobuf-net, but to do a complete example > I'd need to see those additional types. > > Marc > (protobuf-net) > > On 31

Re: [protobuf] Serialization of Object type without modifying C# class generated out of schema

2012-08-01 Thread Shail
t.AreEqual(123.45F, data.AdjustValue); > Assert.AreEqual(2, data.Ranges.Length); > Assert.AreEqual(1.0F, data.Ranges[0]); > Assert.AreEqual(2.4F, data.Ranges[1]); > Assert.AreEqual(2, data.Values.Length); > Assert.AreEqual(7.21F