26#ifndef PERSISTENCE_MANAGER_H
27#define PERSISTENCE_MANAGER_H
A component is something that composed something and could also be a part of something.
Definition modeling/libraries/pml/Component.h:48
Definition PersistenceManager.h:30
Definition PersistenceManager.h:41
static bool loadComponents(QVariant, QDir rootPath)
Loads/Open the components from the QVariant and update the property values accordingly.
Definition PersistenceManager.cpp:199
static QVariant fromComponents(QList< Component * >, QDir rootPath)
Converts component's filename and properties to QVariant.
Definition PersistenceManager.cpp:180
static QVariant fromProperties(const QObject *)
Convert the properties of a QObject to a QVariant.
Definition PersistenceManager.cpp:221
static bool setUuidInProperties(QObject *, QUuid)
Sets the UUID of a QObject.
Definition PersistenceManager.cpp:306
static QVariant stringToVariant(QString value)
returns a valid QVariant for specific types corresponding to a specific string representation
Definition PersistenceManager.cpp:417
static void updateVariantValueWhilePreservingType(QVariant &variant, QVariant &newValue, QString name="")
Update the variant value while trying to preserve its type.
Definition PersistenceManager.cpp:320
static bool saveWorkspace(QString filepath)
Save the whole Application workspace including components, settings (e.g.
Definition PersistenceManager.cpp:53
static bool loadWorkspace(QString filepath)
Loads the whole Application workspace from a CamiTK file.
Definition PersistenceManager.cpp:117
static void loadProperties(QObject *, QVariant)
Sets the properties of a QObject from a QVariant.
Definition PersistenceManager.cpp:274
static QUuid getUuidFromProperties(const QObject *)
Gets the UUID of a QObject.
Definition PersistenceManager.cpp:295
static QString variantToString(const QVariant &variant)
returns a specific string representation of (limited list of) some specific QVariant types
Definition PersistenceManager.cpp:395