Boost logo

Boost Users :

Subject: Re: [Boost-users] Using boost Barser to extract data from string
From: Leon Sit (wing1127aishi_at_[hidden])
Date: 2011-11-12 11:52:37


Are the width of the fields fixed?

On Sat, Nov 12, 2011 at 3:19 AM, Gaurav Shah <gaurav.xp_at_[hidden]> wrote:

> Hi,
>> I want to write parser for data I receive from a stock exchange server.
>> There is no delimeter that define different fields in buffer I receive.
>> However, it is provided in exchange spec's start and of each field.
>> How should I write parser for data I recveive? I am new to parser consept
>> and apprecite your suggestion.
>> I am putting following example data string just to insist my scenario
>>
>> Data my application recveive:
>> 1001TXPASSWORDSESSION1N
>>
>> I need to decode it(as per spec) as:
>> Messate type: 1001
>> UserID: TX
>> password: PASSWORD
>> session: SESSION
>> data: N
>>
>> How should I be doing it?
>>
>> Thank You,
>> Gaurav
>>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net