#include <map>#include <string>#include <typeinfo>#include <memory>#include <RCF/Export.hpp>#include <RCF/ThreadLibrary.hpp>#include <RCF/Tools.hpp>#include <SF/SerializePolymorphic.hpp>#include <SF/Serializer.hpp>Go to the source code of this file.
Functions | |
| template<typename T > | |
| void | SF::registerType (const std::string &typeName) |
| template<typename Base , typename Derived > | |
| void | SF::registerBaseAndDerived () |
| void SF::registerType | ( | const std::string & | typeName | ) |
Register a type T with SF runtime. When serializing polymorphic objects of type T, typeName will be written to the archive along with the serialized representation of T, to allow correct instantiation of type T when deserializing through a base type.
| void SF::registerBaseAndDerived | ( | ) |
Register a base/derived relationship with the SF runtime. Allows SF to locate the correct serialization function for objects of type Derived, when Derived objects are serialized through a Base pointer.