C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Serialization class template (ordinal numbering of created objects). More...
#include <reference_item.h>
Public Member Functions | |
MbSerialItem () | |
Constructor. | |
size_t | GetSerial () const |
Get object serial identifier. | |
Protected Member Functions | |
virtual | ~MbSerialItem () |
Destructor. | |
Serialization class template (ordinal numbering of created objects).
Serialization class template (ordinal numbering of created objects).
How to use: inherit from this class.
The template argument allows multiple serializations at the same time:
if you need serialization of objects of class T, you can write class T: virtual public MbSerialItem <T>
if U objects must have the same serialization, you can write a class U: virtual public MbSerialItem <T>
or you can create an empty class to serialize the class type MbBasicSerializer
and inherit it from MbSerialItem <MbBasicSerializer>.