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-25 13:44:41 +02:00
2014-08-31 02:14:20 +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-26 13:25:22 +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-28 23:02:49 +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-31 02:14:20 +02:00
2014-08-10 14:30:30 +02:00
2014-08-26 17:41:33 +02:00
2014-08-26 17:41:33 +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-27 22:39:28 +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-08-27 22:39:28 +02:00
2014-08-26 13:25:22 +02:00
2014-08-26 13:25:22 +02: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-08-26 13:25:22 +02:00
2014-08-26 13:25:20 +02:00
2014-08-26 16:57:05 +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:22 +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