Into

Modules

Documentation

classPiiQVariantWrapper::Template

#include <PiiQVariantWrapper.h>

A template that is instantiated for all user types intended to be serialized as QVariants.

Inherits PiiQVariantWrapper

Description

For each such user type, an instance of this template must be compiled, and its serializer and factory must be registered. To make MyType serializable as a QVariant, do this in a .cc file:

 #include <PiiQVariantWrapper.h>
 #define PII_SERIALIZABLE_CLASS PiiQVariantWrapper::Template<MyType>
 #define PII_SERIALIZABLE_CLASS_NAME "PiiQVariantWrapper<MyType>"
 #include <PiiSerializableRegistration.h>

Friends

friend struct

Function details

  • template<class Archive>

    void load

    (
    • Archive & archive
    • const unsigned int
    )
    [inline]
  • template<class Archive>

    PII_VIRTUAL_METAOBJECT_FUNCTION PII_SEPARATE_SAVE_LOAD_MEMBERS void save

    (
    • Archive & archive
    • const unsigned int
    )
    [inline]
Notes (0)

Add a note

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