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 |
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 |