[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
parsing bytes array
From: |
Sunil Kumar Jain |
Subject: |
parsing bytes array |
Date: |
Fri, 2 Nov 2001 15:09:03 +0530 |
Hi;
I'm Sunil, using bison & flex for message parsing.
After generating *.c files but naming them as *.cpp(it has the "C" code
only), is it possible to populate the decoded message in a class object?
In fact, I'm planning this way:
When some function calls "decode function" by passing the array of
bytes, this decode function should take care of parsing the passed bytes of
array as argument.
e.g :
class Test; -> this is CPlusPlus class.
Test decode( char bytes[ ] ) -> this method should take care of
parsing the bytes[] array and parsed message should get filled in an object
of type "class Test" and this object is returned.
Is it possible.
Pl. comment on this.
regards
sunil
- parsing bytes array,
Sunil Kumar Jain <=