6 Jun
2008
6 Jun
'08
8:56 p.m.
Hi! Hansi schrieb:
Is there some library in boost available with which it is possible to solve this problem? I don't know may be it is possible to solve the problem with spirit...
Yes, spirit is the only library targeting your problem within boost. But spirit is for parsing anything, but it only has ready-to-use parsers for text. You would need to implement own parsers, that would parse e.g. an int out of binary data. See: http://www.boost.org/doc/libs/1_35_0/libs/spirit/doc/indepth_the_parser.html Inherit from parser<Derived> and implement the parse function. Look into the boost sources to see how predefined parsers are built. Decide upon "char type" to use, probably unsigned char for binary data. Frank