#41 Macro for definition of typenames for IO system

open
nobody
None
5
2003-07-22
2003-07-22
No

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.

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks