C++ & parsing streams

T

The Determinant

Hi,

I need to write and read (parse) a stream of bytes from a file. The
data will be stored/read with C++'s read/write file functions. The
data will be tagged and store in an XML like format. Is there any C++
code that‘s available for free? I Google the internet but I'm not
finding any source code. I found only some libraries. I need the
actual C++ header and cpp (cxx) files. Can someone point me to
something?

Thanks
 
P

Phil Staite

You say "...XML like format..." which to me means not XML but perhaps some
proprietary or "home grown" format. So your chances of finding a specific
parser for that are slim. However, std::string and STL have some facilities
for string parsing. Also, even plain old std::getline() can chop up an
input stream into delimited chunks.
 
J

Jeff Flinn

The Determinant said:
Hi,

I need to write and read (parse) a stream of bytes from a file. The
data will be stored/read with C++'s read/write file functions. The
data will be tagged and store in an XML like format. Is there any C++
code that's available for free? I Google the internet but I'm not
finding any source code. I found only some libraries. I need the
actual C++ header and cpp (cxx) files. Can someone point me to
something?


See http://www.boost.org/libs/spirit/index.html for an embedded C++ parser.

Jeff F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Rearranging .ply file via C++ String Parsing 0
"Streams" 8
Streams 4
Parsing Input with cin 2
Extend streams in C++ 7
insertion, extraction, and streams 1
Connecting File Streams 1
Questions about buffered streams 28

Members online

Forum statistics

Threads
474,183
Messages
2,570,970
Members
47,525
Latest member
emmawilsonpark

Latest Threads

Top