Into

Modules

Documentation

namespace referencePiiSerialization

A namespace that wraps global serialization functions and serialization-related global symbols.

Classes

struct

A proxy through which calls to serialization member functions are passed.

struct

Functions

bool
(
  • const void *
)

This function is used to check if the real type of the class is known at compile time or not.

template<class Archive, class T>
void
(
  • Archive & archive
  • T & value
  • const unsigned int version
)

Default implementation of a serialization function.

Function details

  • bool isDynamicType

    (
    • const void *
    )
    [inline]

    #include <PiiDynamicTypeFunctions.h>

    This function is used to check if the real type of the class is known at compile time or not.

    If a class can be serialized through a base class pointer, its type cannot be known at compile time. Thus, its type is dynamic. For such, types an overloaded version of this function that returns true must be provided. Typically, such a type will also have an overload for PiiSerialization::metaObjectPointer(). The default implementation returns false.

    See also
    • serialization_serializers

  • template<class Archive, class T>

    void serialize

    (
    • Archive & archive
    • T & value
    • const unsigned int version
    )
    [inline]

    #include <PiiSerialization.h>

    Default implementation of a serialization function.

    Override this for your type to provide non-intrusive serialization facilities.

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.