Binary serialization
From Code Synthesis Wiki
(Difference between revisions)
Revision as of 09:47, 14 February 2011 Erik Sjölund (Talk | contribs) ← Previous diff |
Revision as of 10:00, 14 February 2011 Erik Sjölund (Talk | contribs) Next diff → |
||
Line 13: | Line 13: | ||
== XDR (eXternal Data Representation) == | == XDR (eXternal Data Representation) == | ||
- | [http://en.wikipedia.org/wiki/External_Data_Representation Description on Wikipedia] | + | [http://en.wikipedia.org/wiki/External_Data_Representation Wikipedia entry] |
There is an example of using XDR in | There is an example of using XDR in | ||
Line 21: | Line 21: | ||
== Boost serialization library == | == Boost serialization library == | ||
+ | |||
+ | The [http://www.boost.org/ Boost C++ libraries] provides a serialization library. | ||
+ | |||
There is an example of using Boost serialization in | There is an example of using Boost serialization in | ||
[http://scm.codesynthesis.com/?p=xsd/xsd.git;a=tree;f=examples/cxx/tree/binary/boost;hb=HEAD examples/cxx/tree/binary/boost] | [http://scm.codesynthesis.com/?p=xsd/xsd.git;a=tree;f=examples/cxx/tree/binary/boost;hb=HEAD examples/cxx/tree/binary/boost] | ||
== QDataStream == | == QDataStream == |
Revision as of 10:00, 14 February 2011
The C++/Tree Mapping User Manual has a section about binary serialization.
Contents |
Predefined binary formats
CDR (Common Data Representation)
The ADAPTIVE Communication Environment (ACE) provides a binary format. The extraction and insertion classes are described in the doxygen generated documentation.
There is an example of using CDR in examples/cxx/tree/binary/cdr
XDR (eXternal Data Representation)
There is an example of using XDR in examples/cxx/tree/binary/xdr
Custom binary formats
Boost serialization library
The Boost C++ libraries provides a serialization library.
There is an example of using Boost serialization in examples/cxx/tree/binary/boost