Kamil Domanski
3d796f8996
overhaul serialization code
...
The implementation of each class' serialization/deserialization is no longer
passed within a macro. The implementation now lies within a template of form:
template <typename T, typename Stream, typename Operation>
inline static size_t SerializationOp(T thisPtr, Stream& s, Operation ser_action, int nType, int nVersion) {
size_t nSerSize = 0;
/* CODE */
return nSerSize;
}
In cases when codepath should depend on whether or not we are just deserializing
(old fGetSize, fWrite, fRead flags) an additional clause can be used:
bool fRead = boost::is_same<Operation, CSerActionUnserialize>();
The IMPLEMENT_SERIALIZE macro will now be a freestanding clause added within
class' body (similiar to Qt's Q_OBJECT) to implement GetSerializeSize,
Serialize and Unserialize. These are now wrappers around
the "SerializationOp" template.
2014-08-31 02:14:20 +02:00
..
2014-08-08 15:21:50 -04:00
2014-06-21 19:47:43 +02:00
2014-06-21 19:47:43 +02:00
2014-08-25 13:44:41 +02:00
2014-08-31 02:14:20 +02:00
2014-07-01 12:27:19 -04:00
2014-08-28 01:54:45 +02:00
2014-08-20 00:27:49 -04:00
2014-07-28 22:08:13 +02:00
2014-08-18 16:50:39 -04:00
2014-08-31 02:14:20 +02:00
2014-08-26 13:25:22 +02:00
2014-08-31 02:14:20 +02:00
2014-07-24 16:08:59 +02:00
2014-06-26 10:36:57 +02:00
2014-07-01 12:13:37 +02:00
2014-08-26 13:25:22 +02:00
2014-08-26 13:25:22 +02:00
2014-07-01 12:13:37 +02:00
2014-08-26 13:25:22 +02:00
2014-07-21 11:50:07 -07:00
2014-08-31 02:14:20 +02:00
2014-08-28 23:02:49 +02:00
2014-06-25 10:31:35 +02:00
2014-08-28 23:02:49 +02:00
2014-07-15 10:26:44 +02:00
2014-08-03 17:26:27 +02:00
2014-07-28 14:54:08 +02:00
2014-06-26 10:36:57 +02:00
2014-07-01 12:13:37 +02:00
2014-08-26 11:29:18 +02:00
2014-08-26 11:29:18 +02:00
2014-08-26 13:25:21 +02:00
2014-08-01 08:39:06 +02:00
2014-08-01 08:39:06 +02:00
2014-08-26 13:25:22 +02:00
2014-08-30 06:27:34 +02:00
2014-08-31 02:14:20 +02:00
2014-08-26 13:25:22 +02:00
2014-08-31 02:14:20 +02:00
2014-08-28 15:30:50 +02:00
2014-08-10 14:30:30 +02:00
2014-06-21 19:47:39 +02:00
2014-06-21 19:47:43 +02:00
2014-08-29 22:52:41 +02:00
2014-06-26 10:36:57 +02:00
2014-07-09 09:42:18 +02:00
2014-08-28 15:30:50 +02:00
2014-08-26 17:41:33 +02:00
2014-08-26 17:41:33 +02:00
2014-08-26 11:26:58 +02:00
2014-08-29 20:22:06 -04:00
2014-08-31 02:14:20 +02:00
2014-08-26 13:25:22 +02:00
2014-08-26 17:41:33 +02:00
2014-08-18 16:10:15 -04:00
2014-08-26 13:25:20 +02:00
2014-08-27 22:39:28 +02:00
2014-06-21 19:47:39 +02:00
2014-05-30 12:01:53 +02:00
2014-08-27 18:04:29 +02:00
2014-08-26 13:25:22 +02:00
2014-08-26 13:25:22 +02:00
2014-08-31 02:14:20 +02:00
2014-08-26 13:25:22 +02:00
2014-08-27 22:39:28 +02:00
2014-08-23 13:21:51 +02:00
2014-08-20 20:54:27 +02:00
2014-08-31 02:14:20 +02:00
2014-08-26 13:25:22 +02:00
2014-07-09 09:42:19 +02:00
2014-08-29 17:25:23 +02:00
2014-07-15 05:20:52 +02:00
2014-06-15 15:38:22 +02:00
2014-08-30 02:35:05 +02:00
2014-08-27 22:39:28 +02:00
2014-07-28 19:30:58 +02:00
2014-08-18 13:36:10 +02:00
2014-08-26 13:25:22 +02:00
2014-08-06 13:03:58 +02:00
2014-08-17 17:39:30 +02:00
2014-08-26 13:25:22 +02:00
2014-08-14 12:34:38 -04:00
2014-08-08 23:13:06 -05:00
2014-08-26 16:57:05 +02:00
2014-08-26 13:25:22 +02:00
2014-08-31 02:14:20 +02:00
2014-08-28 01:52:22 +02:00
2014-07-11 14:48:02 +02:00
2014-08-26 13:25:22 +02:00
2014-08-26 13:25:20 +02:00
2014-08-26 13:25:21 +02:00
2014-08-26 16:57:05 +02:00
2014-08-26 11:29:18 +02:00
2014-08-28 15:30:50 +02:00
2014-08-26 11:29:18 +02:00
2014-08-14 12:32:34 -04:00
2014-08-26 13:25:22 +02:00
2014-07-14 16:13:08 +02:00
2014-08-26 13:25:22 +02:00
2014-08-26 13:25:22 +02:00
2014-08-26 13:25:22 +02:00
2014-08-26 13:25:22 +02:00
2014-08-26 13:25:22 +02:00
2014-08-26 13:25:22 +02:00
2014-08-26 13:25:22 +02:00
2014-08-26 13:25:22 +02:00
2014-08-26 13:25:21 +02:00
2014-08-27 18:04:29 +02:00
2014-08-29 17:26:01 +02:00
2014-08-31 02:14:20 +02:00
2014-08-26 13:25:22 +02:00
2014-08-31 02:14:20 +02:00