Great job Chris! I will test it when I have time.

Ryan

On 12/1/10, Chris Frey <cdf...@foursquare.net> wrote:
> On Tue, Aug 24, 2010 at 02:23:59PM -0400, Chris Frey wrote:
>> On Mon, Aug 23, 2010 at 03:02:48PM -0700, Richard Vickery wrote:
>> > Hi gang:
>> >
>> > Is it possible to get a program that opens the Backup? I drowned my
>> > Blackberry and am looking to pick up a Nokia N900 Linux phone, and I
>> > have my Blackberry files backed up.
>>
>> That's a feature that I want too, but haven't had the time to code it.
>> I need to port the tar backup code to the library, so I can share it with
>> tools like btool.
>>
>> The backup files are just tarballs, which you can expand if needed.
>> But there is no easy way to feed that data into the parser code yet.
>>
>> It's on my mental todo list.
>>
>> - Chris
>
>
> Hi list!
>
> The above desired feature now exists, in the form of tools/btardump.cc
> and the accompanying parser classes and builder classes which have been
> added to Barry's git tree today.
>
> The idea is that you can have multiple builders, which provide raw
> binary record data from various sources, which can feed into parsers
> which provide Record classes (Contact, Calendar, etc) that hold the
> fields of usable data.  Alternately, parsers can just store the data
> whatever format they need.
>
> There is also a Pipe class that hooks them together.  So we now have:
>
>       Builders                                Parsers
>       ========                                =======
>       Restore                                 Backup
>       DeviceBuilder        (Pipe)             HexDumpParser
>                                               RecordParser<>
>                                               MultiRecordParser
>                                               AllRecordParser
>                                               TeeParser
>                                               NullParser
>
> Restore reads from backup tarballs, Backup writes them.
> DeviceBuilder reads from devices.
>
> The RecordParser<> template takes a storage functor class, and there
> are three built-in storage classes available:
>
>       NullStore
>       DumpStore
>       AllRecordDumpStore : public AllRecordStore
>
> See examples/pipedump.cc and tools/btardump.cc for examples of how
> to connect these classes to do work for you.
>
> Enjoy, and let me know if you find any bugs!
> - Chris
>
>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Barry-devel mailing list
> Barry-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/barry-devel
>

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to