As I understand for each class which should support serialization it is
necessary to define set of static variables. For example
KernelFunctionC LinearKernel2KernelFunction(const LinearKernelC
&func)
{ return func; }
DP_REGISTER_CONVERSION_NAMED(LinearKernel2KernelFunctio
n, 1, "RavlN::KernelFunctionC RavlN::Convert(const RavlN::
LinearKernel2KernelFunction &)");
static TypeNameC TypeLinearKernel(typeid(LinearKernelC), "RavlN:
:LinearKernelC");
FileFormatStreamC<LinearKernelC>
FileFormatStream_LinearKernel;
FileFormatBinStreamC<LinearKernelC>
FileFormatBinStream_LinearKernel;
It seems that it would be good to have macros which will help to do
that. Moreover there are lots of reasons to define it apart from class
defining simplicity.