|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
QObject-based base for all UUID-identifiable objects. More...
#include <src/utils/uuid_identifiable.h>


Public Member Functions | |
| UuidIdentifiableBase (QObject *parent=nullptr) | |
| UuidIdentifiableBase (const QUuid &id, QObject *parent=nullptr) | |
| QUuid | raw_uuid () const |
Protected Member Functions | |
| void | set_raw_uuid (const QUuid &id) |
Friends | |
| bool | operator== (const UuidIdentifiableBase &lhs, const UuidIdentifiableBase &rhs) |
| void | to_json (nlohmann::json &j, const UuidIdentifiableBase &obj) |
| void | from_json (const nlohmann::json &j, UuidIdentifiableBase &obj) |
QObject-based base for all UUID-identifiable objects.
Inherits QObject so that every registry object is a QObject automatically. This enables qobject_cast from the base pointer, QObject parent-child ownership in the registry, and eliminates the need for derived types to inherit QObject separately.
Every object in the project that needs to be referenced by UUID inherits from this, either directly (via UuidIdentifiableObject<T>) or indirectly (through a typed base like Track).
Definition at line 26 of file uuid_identifiable.h.
|
inlineexplicit |
Definition at line 31 of file uuid_identifiable.h.
|
inline |
Definition at line 35 of file uuid_identifiable.h.
|
inline |
Definition at line 43 of file uuid_identifiable.h.
|
inlineprotected |
Definition at line 55 of file uuid_identifiable.h.
|
friend |
Definition at line 46 of file uuid_identifiable.h.