/[svn]/libgig/trunk/src/Serialization.h
ViewVC logotype

Diff of /libgig/trunk/src/Serialization.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3141 by schoenebeck, Wed May 3 14:41:58 2017 UTC revision 3142 by schoenebeck, Wed May 3 17:37:33 2017 UTC
# Line 382  namespace Serialization { Line 382  namespace Serialization {
382       * @code       * @code
383       * Archive a;       * Archive a;
384       * a.serialize(&myRootObject);       * a.serialize(&myRootObject);
385       * @encode       * @endcode
386       * Or if you prefer the look of operator based code:       * Or if you prefer the look of operator based code:
387       * @code       * @code
388       * Archive a;       * Archive a;
389       * a << myRootObject;       * a << myRootObject;
390       * @encode       * @endcode
391       * The Archive object will then serialize all members of the passed C++       * The Archive object will then serialize all members of the passed C++
392       * object, and will recursively serialize all other C++ objects which it       * object, and will recursively serialize all other C++ objects which it
393       * contains or points to. So the root object is the starting point for the       * contains or points to. So the root object is the starting point for the
# Line 402  namespace Serialization { Line 402  namespace Serialization {
402       * @code       * @code
403       * Archive a(rawDataStream);       * Archive a(rawDataStream);
404       * a.deserialize(&myRootObject);       * a.deserialize(&myRootObject);
405       * @encode       * @endcode
406       * Or with operator instead:       * Or with operator instead:
407       * @code       * @code
408       * Archive a(rawDataStream);       * Archive a(rawDataStream);
409       * a >> myRootObject;       * a >> myRootObject;
410       * @encode       * @endcode
411       * Now this framework automatically handles serialization and       * Now this framework automatically handles serialization and
412       * deserialization of fundamental data types automatically for you (like       * deserialization of fundamental data types automatically for you (like
413       * i.e. char, int, long int, float, double, etc.). However for your own       * i.e. char, int, long int, float, double, etc.). However for your own

Legend:
Removed from v.3141  
changed lines
  Added in v.3142

  ViewVC Help
Powered by ViewVC